Existing Authentication System - Existing Customer
user=await passport.login('magicLink',{'email': emailValue}) <script>
const start = async () => {
const passport = new window.CredenzaPassport({
chainId: '4',
config: { /* Headless */ },
})
const params = new Proxy(new URLSearchParams(window.location.search), {
get: (searchParams, prop) => searchParams.get(prop),});
let emailValue = params.email; // "some_value"
if (emailValue)
await passport.login('magicLink', {'email': emailValue})
passport.onLogin(async (data) => {
window.location.href=’ https://www.yoururl.com/registerSuccess’;
})
}
start();
</script>Last updated