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

Missing errorcodes #99

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

wibed
Copy link
Contributor

@wibed wibed commented Mar 12, 2024

i replaced some manual errors with normalized counterparts

Signed-off-by: wibe <pbwo@pm.me>
Signed-off-by: wibe <pbwo@pm.me>
Copy link
Member

@0xTim 0xTim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this but it's a breaking change. I'm happy to roll it into a major release with the async/await changes but if we're going to do that we should remove the public enum altogether and replace it with static cases backed by an internal enum. See JWTError in JWTKit for reference

@wibed
Copy link
Contributor Author

wibed commented Mar 21, 2024

how does jwt kit map over imperial? could imperial be a thin wrapper and jwt-kit if it includes oauth tokens aswell?

@0xTim
Copy link
Member

0xTim commented Mar 25, 2024

It doesn't at all. The two are completely unrelated.

You could use a JWT once you've authenticated the user with Imperial but that's nothing to do with this library. The JWT link was only there as an example of how to get rid of a public enum

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

Successfully merging this pull request may close these issues.

None yet

2 participants