Skip to content
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

The account is not confirmed after clicking the email link #578

Open
gregorvoinov opened this issue Dec 7, 2021 · 1 comment
Open

The account is not confirmed after clicking the email link #578

gregorvoinov opened this issue Dec 7, 2021 · 1 comment

Comments

@gregorvoinov
Copy link

gregorvoinov commented Dec 7, 2021

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
image
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
@eyaleizenberg
Copy link

I have the exact same issue 😢
@gregorvoinov did you manage to solve this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants