MCPcopy
hub / github.com/devias-io/material-kit-react / signUp

Method signUp

src/lib/auth/client.ts:40–48  ·  view source on GitHub ↗
(_: SignUpParams)

Source from the content-addressed store, hash-verified

38
39class AuthClient {
40 async signUp(_: SignUpParams): Promise<{ error?: string }> {
41 // Make API request
42
43 // We do not handle the API, so we'll just generate a token and store it in localStorage.
44 const token = generateToken();
45 localStorage.setItem('custom-auth-token', token);
46
47 return {};
48 }
49
50 async signInWithOAuth(_: SignInWithOAuthParams): Promise<{ error?: string }> {
51 return { error: 'Social authentication not implemented' };

Callers 1

SignUpFormFunction · 0.80

Calls 1

generateTokenFunction · 0.85

Tested by

no test coverage detected