I have a case where, i need to do push notification in firebase without a firebase auth. I am doing custom auth with API end points in buildship.
Cant do push notifications for custom Auth
Database & APIs
For push notifications to work i should have a users collection in the firebase project. So i tried to create one and then the auth automatically changes to firebase auth. Now in the login API i send a JWT token generated from the users mailId (Note this is not the usersID in the firebase DB, but the email present in my own db.) Thus when we use the login Auth it is using the token from the backend call JWT, and calling the signInWithCustomToken method, since the token doesn;t match it gives error. This is the only method i could do, other way is to add userId MANUALLY in the DB , but that wont reach us anywhere.
some screenshots of the auth flow is shown but its the custom method.
Yes