- Go to Firebase Console: https://console.firebase.google.com/
- Select your project "scooty-charge"
- In the left menu, click "Build" → "Authentication"
- Click "Get started"
- Go to the "Sign-in method" tab
- Find "Anonymous" in the list
- Click on it
- Toggle "Enable" to ON
- Click "Save"
That's it! Anonymous authentication is now enabled.
Firebase requires authentication before you can read/write to the database. We use anonymous authentication so users don't need to create accounts - they just use scooter codes.
- Save the changes in Firebase Console
- Restart your dev server:
npm run dev - Try connecting with a scooter code again
- Check the browser console (F12) for any errors