is possible in realtime database rules validate if email exist in Authentication?
because I login at https://identitytoolkit.googleapis.com/v1/accounts:signInWithPassword?key=[API_KEY] and get idToken to log in to the realtime database, but I would like to know if there is a way to validate if auth.token.email = authentication email and email enabled this is a result of an idToken base64 decode:
I need to know if "email": "[email protected]" exists in Authentication user
{
"iss": "https://securetoken.google.com/xaxaxaxa",
"aud": "xaxaxaxa",
"auth_time": 1567541399,
"user_id": "xxxxaxxaxaxaxaxaxax",
"sub": "xaxaxaxaxaxaxaxa",
"iat": 1567541399,
"exp": 1567544999,
"email": "[email protected]",
"email_verified": false,
"firebase": {
"identities": {
"email": ["[email protected]"]
},
"sign_in_provider": "password"
}
}