MCPcopy
hub / github.com/monkeytypegame/monkeytype / getAuthenticatedUser

Function getAuthenticatedUser

frontend/src/ts/firebase.ts:98–100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96 * @returns the current user if authenticated, else `null`
97 */
98export function getAuthenticatedUser(): User | null {
99 return Auth?.currentUser ?? null;
100}
101
102export function getAnalytics(): AnalyticsType {
103 return firebaseGetAnalytics(app);

Callers 7

addAuthProviderFunction · 0.90
reauthenticateFunction · 0.90
isUsingAuthenticationFunction · 0.90
finishFunction · 0.90
getIdTokenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected