Got sign in automatically after sign in once with Phone verification

  • Which SDK this is regarding: auth0-spa-js

  • SDK Version: 1.9

  • Snippet code :

async function loginAuth0 (clientId, domain) {
  const auth0 = await createAuth0Client({
    domain: domain,
    client_id: clientId

  const token = await auth0.getTokenWithPopup({
      display: 'wap'
  console.log(await auth0.getUser())
  await auth0.logout({localOnly : true})
  return token;

I test with Google sign in and phone verification and it happens only with phone verification.

So, how to let user do the phone verification again without refreshing the page?