Relative Content

Tag Archive for supabase

If an error occurs when using supabase’s auth.signinwithpassword, it cannot be caught

function Login() { const router = useRouter(); const supabaseClient = supabase(); const { register, handleSubmit } = useForm({ mode: ‘onChange’ }); const onSubmit = async (data) => { try { const { data: loginData, error } = await supabaseClient.auth.signInWithPassword({ email: data.email, password: data.password, }); if (error) throw error; const userData = await supabaseClient.auth.getUser(); const { […]

Supabase getting error when reseting the password

I’m having this error AuthSessionMissingError: Auth session missing! on local development when i tried to update user password on my password reset flow my app is built on nextjs. I had recieved the email with the url configured to redirect but it showed like this:

Use Supabase as an OAuth provider

I’m currently evaluating using Supabase as the backend for a new project that involves Alexa skills and I’d like to use account linking. Can we use Supabase itself to mint custom tokens and refresh tokens to support an authentication code protocol as required by Alexa skills?