MCPcopy Index your code
hub / github.com/monkeytypegame/monkeytype / signIn

Function signIn

frontend/src/ts/auth.tsx:199–216  ·  view source on GitHub ↗
(
  email: string,
  password: string,
  rememberMe: boolean,
)

Source from the content-addressed store, hash-verified

197}
198
199export async function signIn(
200 email: string,
201 password: string,
202 rememberMe: boolean,
203): Promise<AuthResult> {
204 if (!isAuthAvailable()) {
205 return { success: false, message: "Authentication uninitialized" };
206 }
207
208 const { error } = await tryCatch(
209 signInWithEmailAndPassword(email, password, rememberMe),
210 );
211
212 if (error !== null) {
213 return { success: false, message: error.message };
214 }
215 return { success: true };
216}
217
218export async function signInWithProvider(
219 authMethod: AuthMethod,

Callers 2

DevOptionsModalFunction · 0.90
LoginFunction · 0.90

Calls 3

isAuthAvailableFunction · 0.90
tryCatchFunction · 0.90

Tested by

no test coverage detected