We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c084c9 commit 734188cCopy full SHA for 734188c
Node/quickstarts/firestore-sync-auth/functions/index.js
@@ -36,6 +36,7 @@ exports.verifyComment = onDocumentWrittenWithAuthContext(
36
// retrieve auth context from event
37
const { authType, authId } = event;
38
39
+ let verified = false;
40
if (authType === "system") {
41
// system-generated users are automatically verified
42
verified = true;
@@ -44,10 +45,8 @@ exports.verifyComment = onDocumentWrittenWithAuthContext(
44
45
if (authId.endsWith("@example.com")) {
46
47
}
- } else {
48
- verified = false;
49
50
-
+
51
// add auth medadata to the document
52
return data.after.ref.set(
53
{
0 commit comments