Scenario
- It is a hybrid app (Most of Android Native Java and part html/javascript in a WebView)
- FirebaseAuth for authentication/signIn [in Android Native app]
- Firestore as database
- Serverless app
I want to
pass the Authentication from Android Native app which was done via FirebaseAuth
TO
html/javascript screens which are being embedded as Webview in my app, so that i can call my Firebase DB without asking user to relogin.
What I Tried
i tried to signIn using signInWithCustomToken and used the token generated from getidtokenresult which throws error "INVALID_CUSTOM_TOKEN"
Any guidance will be helpful