onApiError custom error page
I made the setting to make a custom error page, but when the error occurs, the /api/auth/error page still works, is there something I forgot to do about it?

17 Replies
no one knows anything about this?
@Ping can you help me ?
Which method are you calling which creates the error?
I tested something like this, after logging in with google, I press the back button from the browser and select the account again, an error occurs here, it is normal for an error to occur, actually a state error occurs, but I am having trouble designing a custom error page. @Ping
If you're using oauth, could you try passing the error callback url here instead?

I'm using auth.api 😦 @Ping

thanks
unfortunately it didn't work it still redirects to api/auth/error @Ping
What does the error message say?
@Ping

Hmm, not sure. Bekacru might know why you're getting this though. Sorry I couldn't help.
thank you, what do you think the reason could be ? @bekacru
is this when you try to use the sso plugin?
no, it's a weird bug that my client encountered when using google login, it's actually normal to give an error, but I want to customize the page
The error occurs as follows: log in with google, then press the back button from the browser, then select the account again and proceed, you encounter a state error
@bekacru
Oh then it should redirect properly if you provided errorIRL
Im not sure why it's not the case. But just checked on my side and it does work.
I don't know :/ @bekacru

I'm not sure if you're meant to pass the redirect res.url
cözdün mü