Skip to content
This repository has been archived by the owner on May 12, 2023. It is now read-only.

AuthenticationClient doesn't handle refresh token expiration #22

Open
morwen opened this issue Oct 9, 2017 · 0 comments
Open

AuthenticationClient doesn't handle refresh token expiration #22

morwen opened this issue Oct 9, 2017 · 0 comments

Comments

@morwen
Copy link

morwen commented Oct 9, 2017

Akeneo.Authentication.AuthenticationClient
public virtual async Task RequestRefreshTokenAsync(string refreshToken, CancellationToken ct = default(CancellationToken)) (Line 99-101)

Refresh with expired refresh token returns 422 Status Code and Message: "Refresh token is invalid or has expired"

Proposal: before throwing exception check if the error is refresh token expiration and call RequestAccessTokenAsync to re-login and get new refresh token

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant