(_: SignUpParams)
| 38 | |
| 39 | class 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' }; |
no test coverage detected