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

Function getVerifiedUser

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

Source from the content-addressed store, hash-verified

171 * @throws {UserEmailNotVerifiedError} If the user's email is not verified.
172 */
173export function getVerifiedUser(): User {
174 const user = authService.getCurrentUser();
175 if (user === null) {
176 throw new UserNotLoggedInError();
177 }
178 if (!user.emailVerified) {
179 throw new UserEmailNotVerifiedError();
180 }
181 return user;
182}
183
184const authService = {
185 signUp,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected