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

Remove default email from buildJwt, add buildUserJwt with default email #146

Merged
merged 2 commits into from
Jun 4, 2024

Conversation

cuzzlor
Copy link
Collaborator

@cuzzlor cuzzlor commented Jun 4, 2024

What ?

When consuming this library, I realised I needed to be able to easily create a test JWT payload without an email claim set.

For example, a JWT payload representing an application will likely not have an email set.

This PR removes the default email from the buildJwt testing function and adds a buildUserJwt which sets a default email for the payload.

@cuzzlor cuzzlor requested review from robdmoore and staff0rd June 4, 2024 02:58
@cuzzlor
Copy link
Collaborator Author

cuzzlor commented Jun 4, 2024

Merging without review, I think currently I'm the only one using this, so best I at least get it right for the first use case...

@cuzzlor cuzzlor merged commit 308a1e6 into main Jun 4, 2024
2 checks passed
@cuzzlor cuzzlor deleted the remove-email-from-testing-build-jwt-defaults branch June 4, 2024 03:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant