-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Detecting session in URL is not working when sending "Password recovery" email manually from Supabase dashboard #397
Comments
We are seeing the same issue when calling supabase.auth.resend({ type: 'signup }); The url looks just like your example too. |
We still experiencing this issue, any updates on it? |
Also experiencing this issue. |
Also having this issue... Turning on Debug mode reveals the following: nuxt.config.js: supabase: {
clientOptions: {
auth: {
debug: true,
},
}
}
Thrown from getSessionFromURL |
Following a magic link _isPKCEFlow() returns false because Using the 'Sign In with E-Mail' ( I modified my supabase magic link email template to include this: I added this page to verify in my nuxt app: <script setup lang="ts">
import type { EmailOtpType } from '@supabase/supabase-js'
const supabase = useSupabaseClient()
const route = useRoute()
const router = useRouter()
const verifyingOtp = ref(false)
const error = ref<string | null>(null)
onMounted(async () => {
const token_hash = route.query.token_hash as string
const type = route.query.type as EmailOtpType
verifyingOtp.value = true
try {
const { error } = await supabase.auth.verifyOtp({ token_hash, type })
if (error) throw error
router.push('/')
} catch (e) {
console.error(isError(e) ? e.message : 'Error resetting password.')
}
verifyingOtp.value = false
})
</script>
<template>
<div v-if="verifyingOtp">Verifying...</div>
<div v-else-if="error">{{ error }}</div>
</template>
following a magic link sent from the supabase dashboard works using pkce flow now. I was also able to authenticate when following a |
I have the same problem with email verification. I downgraded |
@ryan-voitiskis Today, I tried your solution #397 (comment), and it works with my sign-up flow! Thank you! ❤️ |
Implicit flow is broken with @supabase/ssr, which hard-codes 'pkce' as the only method.
will be ignored by Nuxt Supabase. Because all actions initiated from the Supabase dashboard (e.g. send password recovery, send magic link, etc.) use the implicit flow, this module is currently not usable. |
We just found this issue.
If I click "Send password recovery", I'm getting a link, it has all query params, but it just opens a home page without signing me in.
The URL looks like this:
https://DOMAIN/#access_token=TOKEN&expires_at=1722510619&expires_in=3600&refresh_token=TOKEN&token_type=bearer&type=recovery
We haven't changed any default settings, except the
redirect
:Everything else works perfectly.
Any thoughts of what can it be?
Version
The text was updated successfully, but these errors were encountered: