Closed schafer14 closed 4 years ago
This snippet shows basically how the confirm module retrieves the value from the token.
https://play.golang.org/p/2i5xIpssJyi
Maybe that can help you out? From your description it's hard to understand exactly what you're trying to accomplish. Are you trying to recreate the token from the e-mail link? Or are you trying to manually re-implement confirms logic?
You mention creating a confirm request which sounds like you're in API mode. In which case the user navigates to your page, you pull the cnf token from the query string and pass it in as cnf to the API endpoint.
Thanks for the response. I was getting super confused. The problem I had was just the URL was coming back with %3D and I was changed those to = characters. I guess this question is not relevant in that case.
Thanks anyways.
I am having some trouble understanding the /confirm endpoint. I am using the /register endpoint to generate a confirmSelector and confirmVerifier and an email. My problem is understanding how to generate a confirm request given that email.
I am trying to base64 encode the cnf token and send it in the request body, but I am receiving an error saying the token size is wrong. I think I'm probably just not understanding the correct process.
Here is an example of the email I am getting back:
I am also logging some information as it is stored
Neither of these look like the cnf string in the email which maybe causing confusion. If you need any more information let me know.