kazu91 / NimbleSurvey

0 stars 0 forks source link

[Feature] As a user, when my token expired it is refresh token automatically #11

Closed blyscuit closed 3 months ago

blyscuit commented 3 months ago

Why

Token can expired and user will not be able to see new data. User should be able to continue using the app after the token expired by automatically refresh their token.

Acceptance Criteria

kazu91 commented 3 months ago

Hi @blyscuit , I need help setup test scenario when access token revoked, I tried to call log out api with postman during refreshing the survey, showed the log out alert because refresh token also revoked. I need help somehow to revoke only access token.

blyscuit commented 3 months ago

@kazu91 Hello. We can skip the log out API call if the refresh token expired.

kazu91 commented 3 months ago

@kazu91 Hello. We can skip the log out API call if the refresh token expired.

Okay I'll fix that, I forgot that the function has api call in it

kazu91 commented 3 months ago

Wait I think I know how to set up for the access token revoked, I'll set the access token to blank while the application pausing at a breakpoint when calling api