suho / kmm-ic

KMM Project with SwiftUI + Jetpack Compose

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Integrate] As a user, I can use the app without issues even if my token is expired

suho opened this issue · comments

commented

Why

After login, if the access token is expired, we need to handle it by implementing a refreshing token to keep the user session.

Acceptance Criteria

  • Implement the refresh token API within the base network whenever we have 401 status
  • Automatically call the Refresh Token API to get a new access token.

NOTE: This story only supports the happy case with the Refresh Token API. In case it returns an error, we will handle it in another story.

Resources

Refresh Token: https://nimblehq.postman.co/workspace/Nimble~9daf6b25-882e-4ad0-8299-95529e2883ff/request/11835486-5f7ef181-ab43-43c2-8683-8b487e07cc56