Skip to content

Commit

Permalink
fix: bungie token error (#1260)
Browse files Browse the repository at this point in the history
  • Loading branch information
NigelBreslaw authored Apr 14, 2024
1 parent 339a118 commit c66bc00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion native/ReleaseNotes/whatsnew-en
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Logout users who had the old oauth token..
Logout users who had the old oauth token...
2 changes: 1 addition & 1 deletion native/app/store/AuthenticationLogic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ async function getTokenInternal(
} catch (e) {
console.error("Failed to validate token", errorMessage, e);
const error = e as Error;
if (error.message === "Invalid Token: Login again" || error.message.includes("NotFound (SQL Return Value")) {
if (error.message === "ProvidedTokenNotValidRefreshToken" || error.message.includes("NotFound (SQL Return Value")) {
console.error(error.message);
get().logoutCurrentUser();
}
Expand Down

0 comments on commit c66bc00

Please sign in to comment.