We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ea422a commit 0dbd0d3Copy full SHA for 0dbd0d3
server/auth/func.ts
@@ -9,6 +9,11 @@ export async function getGUIDFromIDToken(token: string) {
9
return decodedToken.uid;
10
}
11
12
+export async function getEmailFromIDToken(token: string) {
13
+ const decodedToken = await auth.verifyIdToken(token);
14
+ return decodedToken.email;
15
+}
16
+
17
export type AuthenticatedContext = Context<
18
// biome-ignore lint: it defaults to any
19
any,
0 commit comments