This message was deleted.
# general
m
This message was deleted.
p
Hi @calm-animal-63676 The intended behavior is for the user to follow the URL and it to be verified without additional interactions. Could you maybe provide more details on the response you get back from Ory? Are there any error messages attached to the flowID when it redirects you to the "verification" page.
c
Hi Alano, Give me a minute for me to check it.
when I follow the URL it does a GET to:
/self-service/registration/flows?id=c7343ad0-1ea4-41a4-8c16-50d92222728e
Which return a
404
Just to add some more information. I am implementing a way for the user to resend the verification link, having a button for that when email is not verified yet. When user clicks
resend link
we do: 1.
initializeSelfServiceVerificationFlowForBrowsers
2.
submitSelfServiceVerificationFlow
without rendering the form (using the registration email) User receives the verification email and clicks on
verify
link. When following this flow, it works well, the email gets verified. However, when it is after registration, it does not work as we expected. Thanks!
p
Could you show me the network requests and redirects happening in your browser when following the link after registration?
you can omit private domains
c
yes, just a minute
for ory only:
The first redirect is
/self-service/verification?flow=efd66e66-8c34-4157-99e6-0051700cae09&token=ULRrJqnz75TixSDJJvD5kAPTOyBT4nZB/wwmd2jAN/e1t8/FH7-3PHjX
The last request with error is
/self-service/registration/flows?id=659b65eb-78c6-4f10-95b7-3b3411def399
p
I can see it redirects you fine to your site. Try get the error message from the ID on the page you were redirected to on your app. I will assume it is the "verification" page. You can do this by calling
Copy code
/self-service/verification/flows?flow=<flowid>
https://www.ory.sh/docs/kratos/reference/api#operation/getSelfServiceVerificationFlow
👀 1
The last error is probably since you are calling registration with the flowID given by verification flow
c
We do not have a "verification" page, we are just redirecting to our main page. I am using the javascript library. I am trying to do the request to
/self-service/verification/flows?flow=<flowid>
through postman, but I am having an issue.
Is there any function on javascript library to do that request?
Maybe this answers:
I am doing this request after the redirect, using
initializeSelfServiceVerificationFlowForBrowsers
p
yes, that's correct, so as you can see the message is the token is invalid and has already been used. Maybe what is happening here is that you email client is following the link, already consuming the token
you can check if the account is verified by calling the
/sessions/whoami
and checking the payload
c
it is not verified, we have checked it. That is the thing that I do not understand.
Because I expect that we do not need to do any request to ory after clicking the verify link.
I am checking the code to understand why there is that request to
/registration
. It should not happen, however, I would expect it to not affect the user being verified on
whoami
request
One thing I noticed, that is confusing to me, is the link from verify email (only after registration) is redirecting to URL defined for
Verification Ui
at (see image)
instead of the one defined here:
p
Strange, maybe this is a bug. @magnificent-energy-493 do you think you could take a look?
c
I could fix the
registration
request being done. It is a bug on our side, but does not solve the issue here.
m
Hey, I have to catch up a bit here, but will see to follow up on this.
👍 1
c
Hi there 👋, I hope the weekend was good for you! I would like to follow up on here. I have been doing some experimentations and noticed the following: 1. When the user follows a link with an invalid token we are redirected to the link defined at
User Interface
for
Verification UI
(ory console); 2. When the user follows a valid link we are redirected to the link defined at
Browser Redirects
for
Post-Verification Redirect
(ory console); I am not sure if it is a correct assumption, but this sounds fine to me. However, the strange thing that is blocking us, is the fact that the link being followed from verification email, immediately after registration, is returning an
invalid token error (4070001)
. I am clicking the link just some seconds after receiving the email. I do not understand how this could be invalid. I am getting the information it is invalid through
GET /self-service/verification/flows?id=flow_id_here
. Could you help here? Thanks!
h
good morning @proud-plumber-24205! we are still having issues with the verification flow, do you have any news on this one? 🙌
p
this is also baffling me somewhat. Could you guys maybe DM me a screencast?
@calm-animal-63676 @helpful-table-77025
h
Joao is already off the computer, so I think he will do it in the morning
p
It's no problem, I will also take a look tomorrow at it
Maybe also include a chrome .har file, might be useful
c
Hi Alano, I am going to send you through direct message a link to a screencast of it. Thanks!