-
Notifications
You must be signed in to change notification settings - Fork 66
Open
Description
Hi,
I have this short script to signup a user.
signup() {
this.$auth.signup(this.credentials.user, this.credentials.password)
.then(response => console.log("Success!Check your inbox! ", response))
.catch(error => console.log("It 's an error", error));
},
after submiting the form the new account appears in the netlify identity section and I receive the email. After clicking the confirmation link I get redirected to my page, but the account doesn't get confirmed.
I can see this url 'https://domain.netlify.app/#confirmation_token=EKccjBJfn9OGXXXXX'.
In the docs I can read this
So the redirect to hide the token doesn't work.
To init the gotrue lib I use a plugin for nuxtjs
import Vue from 'vue'
import GoTrue from 'gotrue-js'
const auth = new GoTrue({
APIUrl: 'https://domain.netlify.app/.netlify/identity',
audience: '',
setCookie: false,
})
Vue.prototype.$auth = auth
I also tried to set the token manually but then I get only this error
confirm() {
this.$auth
.confirm(this.token, true)
.then((response) => {
console.log('Confirmation email sent', JSON.stringify({ response }));
})
.catch((error) => {
console.log(error)
})
},
JSONHTTPError: User not found
at eval (index.js?9cc8:132)
- OS: MAC OS Monterey
- Browser chrome
- Version latest
Metadata
Metadata
Assignees
Labels
No labels