Skip to content

Commit

Permalink
Update AppAuthenticationToken.js
Browse files Browse the repository at this point in the history
  • Loading branch information
joao-vasconcelos committed Jan 29, 2024
1 parent 4bf2623 commit f86fd60
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default function AppAuthenticationToken() {
} else if (status === 'authenticated') {
const signedTokenResponse = await fetch('/api/auth/token/sign');
const signedTokenData = await signedTokenResponse.text();
const newUrl = `/token?token=${signedTokenData}`;
const newUrl = `carrismetroplitana://token?token=${signedTokenData}`;
window.history.replaceState({ ...window.history.state, as: newUrl, url: newUrl }, '', newUrl);
} else {
router.push('/login?callbackUrl=/token');
Expand Down

0 comments on commit f86fd60

Please sign in to comment.