'authentication with firebase authorization with custom service
I need to use the authentication service from firebase. but use my existing authorization service.
Can i use user token, sessions info from firebase.auth().onAuthStateChanged(function(user) {})
what is the best way/ways to manage these kind of use cases. Should i also store my user details cookies, token etc?
Solution 1:[1]
You can implement a custom provider for Firebase Authentication. In this process:
- You sign the user in to your service with their credentials as usual.
- You then mint a token based on the user's profile.
- The user then uses that token to sign in to Firebase.
The entire process is quite well documented on the links I included above.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Frank van Puffelen |
