I can’t find out how to use Google log-in in Firebase authentication to authenticate users to read and write data. I didn’t find the token id required for authentication. And after sign-in even it always shows Permission denied error .
Can anyone enlighten this ?
use above block arrangemen. by this after login sucess you can even open another screen and store the email id of user (if needed). as far as token id is concerned go to your firebase dashboard and then open settings . see below image.
enable google sign in. In you firebase authentication dashboard.When I use firebase database component to get data it shows permission denied error. I have set my rules for authenticated users only. Help me out…
change your rule to this.
// These rules grant access to a node matching the authenticated
// user’s ID from the Firebase auth token
{
“rules”: {
“users”: {
“$uid”: {
“.read”: “$uid === auth.uid”,
“.write”: “$uid === auth.uid”
}
}
}
}
through this rule only your app user will be able acess databse.
for authentication method use ‘mirxtrem’ extension - you can pull user token over there.
see also here
It demands for access token. Where do I get it from?? It’s the same question again : Where do I get token from?
This extension creates error while compiling. Please suggest some way as soon as possible.
what is the error, please share it
kindly show ur block arrangement.