RoboJackets / RoboJackets/apiary-react-native

Refresh token is invalid when app opened after a long time

Open
#41 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
TypeScript
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

If a user opens the app after a long time leaving it closed, the app will automatically attempt to log in with the auth token, then the refresh token. If the refresh token is invalid, it throws an error to the user saying that the refresh token is invalid and does not log in.

Should the behavior change to a silent failure to log in automatically, booting the user to the login screen, or should this error stay?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the automatic auth-token then refresh-token flow described in the issue and confirm how invalid refresh tokens are surfaced. Done requires an agreed behavior and a corresponding implementation plan; the payload names no file, entry point, or test.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native, typescript
Domain
authentication, mobile
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.