Firebase Permission denied

I am working on a simple sign up and login form with Firebase. I connected firebase properly, set up sign-up method to "Email\password" and enable them.
But it encounters "Fire base permission denied" error, as soon as I connect my app on MIT AI2 Companion.

First I tried the following rule: {
"rules": {
"Users": {
"$email": {
".read": "auth != null && auth.token.email.replace('.', '') === $email",
".write": "auth != null && auth.token.email.replace('.', '
') === $email"
}
}
}
}

then, I tried:
{
"rules": {
".read": "auth != null",
".write": "auth != null"
}
}

Please help me !!!!



You cannot use the AI2 firebase component with firebase authentication. You will have to use the web component or an extension.

2 Likes

Thanks for your response! I included web component too.
How to use web component for authentication? Could you please guide me ?

Many Thanks! I will check it

is there any other way to authenticate users? I wanted to store and retrieve multiple data under one tag.

This guide is probably more comprehensive and easier to use:

You might have a look at the anonymous section in the above...

There are also extensions available

per user, or all users, to the same tag ?

store multiple data like, name, email, phone no, address of a user.
Once the user logged in retrieve them from the profile page.

Multiple user can register on this app.

Sounds like you want to set these rules:

yes exactly.