Hi there,
I have implemented the off-the-shelf Firebase authentication with Google Sign In as the provider.
The login is successful and creates a new user in my Firestore db.
The flow is: user presses login button on landing page -> triggers 'sign in with google' auth flow -> user completes flow -> firebase profile updated/created -> navigate to home page
Is it possible to retrieve the access token from the credentials object that is generated from this flow - I cannot find how I can retrieve the credentials object once the built-in auth process completes.
The access token is needed to pass to the Google Fit API as my app is a fitness app which needs to retrieve the user's latest step count. But, currently, I do not seem able to retrieve the token even though it must be being returned somewhere for the flow to complete.
I would prefer not to have to re-engineer the entire auth flow just to get the auth token. There must be another way...