How can I perceive the token-expired situation?
Open
help wanted
- Dominant language
- Rust
- Stars
- 20.8k
- Forks
- 2.1k
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 181
Description
If the token is expired, I will get an error with HTML message filled: `Not authorized`. I use `WebSocketTransport` and `QueryRenderer` in my react app.
The problem is: I need to handle the token-expired(or invalid) situation (maybe to renew a token or logout user). But I can not find any way except to use `error.toString().match(/Not\sauthorized/)`. It's not robust.
Is there any other way?
Contributor guide
Assessment
This issue has not been assessed yet.