How does the Verify User Account method work? #344
-
Hey! I'm looking for clarification on the method here: https://github.com/GodotNuts/GodotFirebase/wiki/Authentication-and-User-Management#verify-user-account
Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Yes, you would want to trigger this after a successful signup - probably want to switch your view to tell them an email has been sent so that they can verify their email address. There's no signal or anything like that - nothing like that comes back from Firebase. Instead, there's a boolean in their info that says whether or not they're verified. You can see where that comes into play here: So for number 2, given the above, what you want to do is "let" them login, but then check that email verified value, and if it's false, immediately log them out. You would want to not show them the game/anything until it's verified, so in theory you should not have navigated by this point. I wish there was an easier way, but if there is, I don't know it. Going to close with this comment, but feel free to re-open if you still want to talk about it. |
Beta Was this translation helpful? Give feedback.
-
Thanks so much, this is a fantastic answer! Might be work bringing it into docs :) |
Beta Was this translation helpful? Give feedback.
Yes, you would want to trigger this after a successful signup - probably want to switch your view to tell them an email has been sent so that they can verify their email address. There's no signal or anything like that - nothing like that comes back from Firebase. Instead, there's a boolean in their info that says whether or not they're verified. You can see where that comes into play here:
GodotFirebase/addons/godot-firebase/auth/user_data.gd
Line 12 in a0c5512
So for number 2, given the above, what you want to do is "let" them login, but then check that email verified value, and if it's…