Skip to content

Commit

Permalink
fix: session should invalidate if refreshing access token fails (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
aversini authored Jul 5, 2024
1 parent 9701c63 commit 5096258
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ export const AuthProvider = ({
userId: user.userId as string,
nonce,
});
if (res.status) {
if (res.status && res.status === "success") {
setAccessToken(res.newAccessToken);
setRefreshToken(res.newRefreshToken);
return res.newAccessToken;
Expand Down

0 comments on commit 5096258

Please sign in to comment.