You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @NicolasPlanas1998, thanks for bringing this to our attention. I found a similar issue about this and I recommend following the suggestion of one of our engineers on how to retrieve the accessToken:
There are 3 tokens at play here:
The Firebase ID token (publicly exposed via user.getIdToken()).
The Firebase refresh token (not exposed to client code via interface, and won't ever be made easily accessible)
OAuth providers' accessToken field. This is provided by the OAuth credential itself but is not stored on the User object
I'll be closing this issue now. If you encounter another issue, feel free to create a new one.
Operating System
iOS 16.4
Browser Version
Google Chrome 124.0.6367.79
Firebase SDK Version
10.11.1
Firebase SDK Product:
Auth
Describe your project's tooling
React App with Typescript
Describe the problem
The accessToken property is present in the User obj but is missing from the User interface and also the documentation
Steps and code to reproduce issue
Error :
Property 'accessToken' does not exist on type 'User'.ts(2339)
The text was updated successfully, but these errors were encountered: