Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documenting API errors #1204

Open
monolithed opened this issue Jan 12, 2025 · 3 comments
Open

Documenting API errors #1204

monolithed opened this issue Jan 12, 2025 · 3 comments

Comments

@monolithed
Copy link

monolithed commented Jan 12, 2025

Could you please add detailed information to the API documentation about all possible errors, their meanings, and how to handle them? At the moment, understanding the differences between invalid_jwt, invalid_session_cookie, and no_session_cookie_provided requires digging into the code. Additionally, some errors, like invalid_grant, seem to come from external sources and aren't documented in the codebase.

@kevinmitch14
Copy link
Contributor

kevinmitch14 commented Jan 21, 2025

It would be nice to know if GenericServerException, OauthException etc. can be 'leaked' to the client

@monolithed
Copy link
Author

@kevinmitch14, they can #1202 🙂

@kevinmitch14
Copy link
Contributor

I mean is it safe to expose these on the client!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants