[RESOLVED] if confirmation by email is enable in auth, what's the correct way to deal with it.

Awaiting for sign up won't do since it sends a user object which will resolve the request and I don't have any clue for what can I send a manual pending request.

const signUp = async (email: string, pass: string) => {
    const {data: {user, session}, error} = await supabase.auth.signUp({email, pass})
    if(error) Promise.reject(new Error(error.message))
    if(!session) new Promise(?)
    return Promise.resolve({user, session})
}

Needed some advice for ?.
Was this page helpful?