pysnippet / fastapi-oauth2

Easy to integrate OAuth2 authentication with support for several identity providers.
https://docs.pysnippet.org/fastapi-oauth2
MIT License
49 stars 7 forks source link

Implement an error handling mechanism #22

Closed ArtyomVancyan closed 9 months ago

ArtyomVancyan commented 10 months ago

The only exception raised is the OAuth2LoginError exception that can occur when parsing the obtained token from the response. Library users must be able to handle the custom errors in their own way, whether they are building an SSR or REST API application.