hey im trying to make a sign-up using supabase but...
# help
c
hey im trying to make a sign-up using supabase but for some reason im not getting any verification mail its just saying "waiting for verification" in the dashboard when I create a new user. can anyone help?
Copy code
js
import supabase from '$lib/db'

export async function post(request) {
    let email = request.body.get('email')
    let password = request.body.get('password')
    let c_password = request.body.get('c_password')

    if (password !== c_password) {
        return {
            status: 401,
            body: 'Passwords are not matching'
        }
    }

    const { session, error } = await supabase.auth.signUp({email, password})

    if (error) {
        return {
            status: error.status,
            body: error.message
        }
    }

    return {
        status: 200,
        body: 'success',
        headers: {
            'set-cookie': `session=${session.user.id}; Path=/; HttpOnly; Secure; SameSite=Strict; Expires=${new Date(session.expires_at * 1000).toUTCString()};`
        }
    }
}
s
Have you checked your spam folder for the verification email?
c
yep, nothing
s
Are you using your own SMTP settings or the default Supabase ones?
c
default
s
Can you try signing up with a different email address from a different mail provider please
Like if the email you used is a @gmail.com one then try a @outlook.com one or something else
c
seems like it doesnt work for other emails either :I
s
And the accounts are being created inside the dashboard when you look at the Users section?
c
yep
they are being created and it says "waiting for verification"
s
I think you should contact the Supabase team by using the feedback widget in the dashboard or email them at beta@supabase.io for help then.
c
ok