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

Function isUsingAuthentication

frontend/src/ts/auth.tsx:467–474  ·  view source on GitHub ↗
(authMethod: AuthMethod)

Source from the content-addressed store, hash-verified

465}
466
467function isUsingAuthentication(authMethod: AuthMethod): boolean {
468 const providerId = getProviderId(authMethod);
469 return (
470 getAuthenticatedUser()?.providerData.some(
471 (p) => p.providerId === providerId,
472 ) ?? false
473 );
474}
475
476export function getPasswordSchema(): ZodString {
477 return isDevEnvironment() ? z.string().min(6) : PasswordSchema;

Callers 3

hasAdditionalAuthMethodsFunction · 0.85

Calls 2

getAuthenticatedUserFunction · 0.90
getProviderIdFunction · 0.85

Tested by

no test coverage detected