Skip to content
This repository has been archived by the owner on May 26, 2024. It is now read-only.

Commit

Permalink
Update tokens.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
domdomegg authored Jan 5, 2024
1 parent 15e27b3 commit 25ab84c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/api/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const assertTokenValid = async (googleIdToken: string) => {
if (!tokenPayload) throw new createHttpError.Unauthorized('idToken: missing payload');
if (!tokenPayload.email) throw new createHttpError.Unauthorized('idToken: missing email');
if (!tokenPayload.email_verified) throw new createHttpError.Unauthorized('idToken: email not verified');
if (tokenPayload.hd !== 'bluedotimpact.org') throw new createHttpError.Unauthorized('idToken: hd not bluedotimpact.org');
if (tokenPayload.hd !== 'bluedot.org') throw new createHttpError.Unauthorized('idToken: hd not bluedotimpact.org');

return tokenPayload;
};

0 comments on commit 25ab84c

Please sign in to comment.