Skip to content

Throwing errors from /api/login , conditional access #336

Answered by kmjennison
Nikola-Milovic asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, what you're looking to do is possible but requires a little more customization.

Right now, if the login/logout endpoints return a non-200 response, this library will throw. To handle errors in a different way, specify a custom tokenChangedHandler in your config. Yours might look like the default handler but with try/catch based on 403 responses.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Nikola-Milovic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants