Is there a way to check if the request user email is verified in the Firestore security rules?
something like:
function isEmailVerified() {
return request.auth.emailVerified == true;
}
The correct syntax is:
request.auth.token.email_verified
If you want to know all claims available in your token, you can decode the JWT in your app or through jwt.io.
Some relevant documentation:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With