Skip to content

Commit

Permalink
Handle direct login URL
Browse files Browse the repository at this point in the history
  • Loading branch information
cs1m0n committed May 6, 2024
1 parent 699d31e commit ff95278
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ const handleRedirectCallback = async () => {
document.querySelector('#login-screen a').click()
}, 2000)
}
else if (window.location.pathname.includes('login')) {
await experience.auth0.loginWithRedirect({
redirect_uri: window.location.origin,
})
}
}
}

Expand Down

0 comments on commit ff95278

Please sign in to comment.