After following the prompts on the GoTrue JS Demo site, I’m at a loss trying to figure out why two different forms of user verification seem to fail. I’ve cloned this project and have been troubleshooting it at https://nostalgic-hypatia-7a6621.netlify.app.
After plugging in my API endpoint, I’m successfully able to create a user via the controls in the 1. Sign up section.
Within seconds, the confirmation email arrives in my inbox. When I click it, I see a split-second flash of browser redirection before I’m dumped back into the demo site with a
confirmation_tokenparameter appended to the URL. I guess this means it worked?
I add my API endpoint again and scroll down to the 3. Log in section. When I use the form to log in with the credentials I just created a minute ago, I get the error
Email not confimed. Maybe there’s some server error I can’t diagnose. In the 2. Confirm section above, I see that GoTrue JS makes a
confirmmethod available. Maybe I can call that manually.
So I add a new form that lets me paste the confirmation token into a field and pass that value to
confirmat the push of a button. Here, I get the error
Could not read verification params: json: cannot unmarshal object into Go struct field VerifyParams.token of type string.
confirm method’s signature. Indeed, it expects a string.
I’ve reached the limit of my troubleshooting ability here. I was hoping to use this library on a project, but wanted to make sure I understood it and could get it working via the demo.
I’d appreciate any help in clearing this hurdle.