Closed wangsijie closed 3 months ago
Wrap fetchUserInfo with trySafe to avoid throwing. When the token expires, this request will fail and throw an error, this error is hard to catch. Developers may check the existance of user to check if the user is authenticated.
fetchUserInfo
trySafe
user
Existing tests should pass.
.changeset
Summary
Wrap
fetchUserInfo
withtrySafe
to avoid throwing. When the token expires, this request will fail and throw an error, this error is hard to catch. Developers may check the existance ofuser
to check if the user is authenticated.Testing
Existing tests should pass.
Checklist
.changeset