MCPcopy
hub / github.com/nextauthjs/next-auth / verificationToken

Function verificationToken

packages/adapter-firebase/tests/index.test.ts:65–75  ·  view source on GitHub ↗
({ identifier, token })

Source from the content-addressed store, hash-verified

63 return null;
64 },
65 async verificationToken({ identifier, token }) {
66 const snapshotQuery = query(VerificationTokens, where("identifier", "==", identifier), where("token", "==", token), limit(1));
67 const snapshots = await getDocs(snapshotQuery);
68 const snapshot = snapshots.docs[0];
69
70 if (snapshot?.exists() && VerificationTokens.converter) {
71 const verificationToken = VerificationTokens.converter.fromFirestore(snapshot);
72
73 return verificationToken;
74 }
75 },
76 },
77})

Callers

nothing calls this directly

Calls 1

queryFunction · 0.85

Tested by

no test coverage detected