‎2024 Aug 12 10:53 AM
Hi all,
I've successfully implement Google sign-in, to the point where I get the userInfo object and idToken.
Reloading currentUser (firebase auth) does not update the sign-in status. Is that possible?
‎2024 Aug 15 12:24 PM
Hello Fletcher,
Thanks for contacting us. Could you provide more details about your issue and include a screenshot of the error? This information will help us investigate further.
‎2024 Aug 15 1:04 PM
Hi Sankara,
There is no error message, there is just a successful signin response (further below) but with no currentUser update.
The successful callback returns an idToken, which I then use in the request body of the endpoint https://identitytoolkit.googleapis.com/v1/accounts:signInWithIdp?key=[API_KEY] to authenticate the user and -as I thought- update the currentUser in the Firebase client SDK.
The signInWithIdp API call is made to authenticate the user with Firebase using their OAuth token.
After this request is successful, Firebase responds with an updated ID token (idToken) and user information (userInfo), yet the SAP Build Apps currentUser (firebase auth) flow function status remains idle or empty despite a reload, yet the authed user is in the firebase authentication console (see pic).
When the call is successful it returns this type of response:
- idToken: The Firebase ID token for the user.
- refreshToken: A token that can be used to refresh the ID token.
- localId: The user's unique identifier in Firebase.
- userInfo with email, displayName, uid, provider, etc.
‎2024 Aug 20 9:47 AM
Hi!
Do you have any update on a potential fix for currentUser (firebase auth) flow function, so that it is forced to update the status based on the Firebase admin SDK?
‎2024 Aug 30 10:59 AM
Hi there,
Anyone can advise if the Get current user (Firebase Auth) flow function can (be fixed to) reflect the updated user status from the Firebase admin SDK when using Google sign-in, so that the app state is actually correct please...........?
If impossible, let me know and I'll just move on.
‎2024 Oct 14 8:39 PM
Thanks for your help by the way..........................................🙄