Skip to content

Commit 72a4c6d

Browse files
committed
special case absent token
1 parent 58e1343 commit 72a4c6d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

apps/website/app/components/auth/LoginWithToken.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ export const LoginWithToken = () => {
2424
setError(result.error.message);
2525
return;
2626
}
27+
if (result.data == null) {
28+
setError("This token does not exist");
29+
return;
30+
}
2731
if (typeof result.data !== "string") {
2832
setError("Payload is not a string");
2933
return;

0 commit comments

Comments
 (0)