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
As it is stated:
This leaves it available for use if it is compromised on the client-side or in transit. The revoke refresh token endpoint can be called, separately, but it would be good to remove the refresh token for the device on logout.
Describe the ideal solution
Refresh token is revoked during logout.
Alternatives and current workarounds
We can call the endpoint to revoke the refresh token directly but this is a big limitation of the SDK and can lead to security issues since many users might not implement it.
[func revoke(headers: [String : String]) async throws] Calls the /oauth/revoke endpoint to revoke the refresh token and then clears the credentials if the request was successful. Otherwise, the credentials are not cleared and an error is thrown.
/**
* Request the revoke of a given refresh_token. Once revoked, the refresh_token cannot be used to obtain new tokens.
* Your Auth0 Application Type should be set to 'Native' and Token Endpoint Authentication Method must be set to 'None'.
*
* Example usage:
*
* ```
* client.revokeToken("{refresh_token}")
* .start(object: Callback<Void?, AuthenticationException> {
* override fun onSuccess(result: Void?) { }
* override fun onFailure(error: AuthenticationException) { }
* })
* ```
*
* @param refreshToken the token to revoke
* @return a request to start
*/
public fun revokeToken(refreshToken: String)
Checklist
Describe the problem you'd like to have solved
There is a request for this feature in Auth0 Community but since this can be a security issue I think it should be discussed here also.
https://community.auth0.com/t/revoke-refresh-token-on-logout/80698
As it is stated:
This leaves it available for use if it is compromised on the client-side or in transit. The revoke refresh token endpoint can be called, separately, but it would be good to remove the refresh token for the device on logout.
Describe the ideal solution
Refresh token is revoked during logout.
Alternatives and current workarounds
We can call the endpoint to revoke the refresh token directly but this is a big limitation of the SDK and can lead to security issues since many users might not implement it.
https://auth0.com/docs/secure/tokens/refresh-tokens/revoke-refresh-tokens
Additional context
No response
The text was updated successfully, but these errors were encountered: