hasura / hasura/react-check-auth
no request when no token
- Dominant language
- JavaScript
- Stars
- 537
- Forks
- 40
- PR merge metrics
- No merged PRs in 30d
Description
Hi is there a way, to not to do a request when there is no jwt token in localStorage?
It should just render the login page
Now it is doing an unneccessary empty request, and the response is also empty. so the userInfo is null.
We should be able to skip that.., do you know how?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by tracing the authentication check that reads the JWT from localStorage and triggers the user-info request, then inspect the existing login rendering path. The change is complete when no request is made without a token and the login page renders, while the authenticated flow still requests user information.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- authentication, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100