({ identifier, token })
| 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 | }) |