MCPcopy Create free account
hub / github.com/WardAnalytics/WardGraph / isAuthenticated

Function isAuthenticated

src/services/auth/auth.services.ts:161–164  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

159 * @returns true if the user is authenticated, false otherwise
160 */
161const isAuthenticated = () => {
162 const user = getCurrentUser();
163 return user?.emailVerified;
164};
165
166/**
167 * Checks if the current user is logged in and their email is verified.

Callers

nothing calls this directly

Calls 1

getCurrentUserFunction · 0.85

Tested by

no test coverage detected