Please provide the following:
- SDK Version: 40
- Platforms(Android/iOS/web/all): Android Pixel 3 Expo Go
- Add the appropriate “Tag” based on what Expo library you have a question on.
I can get Expo/Google log in to work using the docs here: Authentication - Expo Documentation
However, I’m not sure how to correctly log out. Simply deleting the token does not tell the API that the user has officially logged out. I know because when I try to log in again, I get an error.
I think this is the only relevant function (AuthSession.revokeAsync()
):
AuthSession - Expo Documentation
However, when I run this code (say, from a Dashboard component’s Logout button):
await AuthSession.revokeAsync(
{
token,
},
{}
)
I get this error:
[Unhandled promise rejection: Invariant Violation: Cannot invoke performAsync() without a valid revocationEndpoint]
Since it’s in the error message, I think it has something to do with revocationEndpoint
, but I’m not sure how to fix it: AuthSession - Expo Documentation
Any tips on how to fix this?