Is this the api route that checks if a user's emai...
# support-questions-legacy
c
Is this the api route that checks if a user's email is verified? /auth/user/email/verify
r
hey @chunkygoo. yes
c
It's returning a 500 error but not crashing the app. I have email verification disabled for protected routes (they dont have to verify their email to go to protected routes) - is this expected?
r
it's not expected. Do you have error handler on the backend? Can you log the error?
c
I get this
When does the frontend call the API?
r
it calls it to check if the email is verified or not - depending on the version of the frontend SDK, it may call it each time you route to a protected route
you should catch the error on the backend (via a generic error handler) and log the output of it
c
Catch it how? I'm using FastAPI
r
that you can google
c
The route to that api isnt defined by me
r
add a generic error handler
c
its part of the core of supertokens
And I can't consistently reproduce this call
r
i need to see the actual error message to help debug
c
Does verify get called when the access token expires?
Or when?
r
no. It gets called wheneber you navigate to a protected route on the frontend -> when you use SessionAuth
c
Hmm...It doesn't on mine