Next.js Discord

Discord Forum

Firebase Realtime database write access

Answered
Anay-208 posted this in #help-forum
Open in Discord
Currently, this is my rule:
{
  "rules": {
    ".read": true,
    ".write": false
  }
}


Now, I want to set write access to only take place if a api key has been provided, and I can't seem to find anything similar to that.

What can I do?
Answered by Anay-208
The option I found was to authenticate, and create a user with random email & pass, then in backend, just provide that email & pass while logging in
View full answer

1 Reply

The option I found was to authenticate, and create a user with random email & pass, then in backend, just provide that email & pass while logging in
Answer