Skip to content

Commit 0dbd0d3

Browse files
committed
fix again
1 parent 7ea422a commit 0dbd0d3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

server/auth/func.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ export async function getGUIDFromIDToken(token: string) {
99
return decodedToken.uid;
1010
}
1111

12+
export async function getEmailFromIDToken(token: string) {
13+
const decodedToken = await auth.verifyIdToken(token);
14+
return decodedToken.email;
15+
}
16+
1217
export type AuthenticatedContext = Context<
1318
// biome-ignore lint: it defaults to any
1419
any,

0 commit comments

Comments
 (0)