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

feat: expose generateNonce util #62

Merged
merged 3 commits into from
Jul 28, 2023
Merged

Conversation

mantariksh
Copy link
Contributor

Closes #61

Alternatives considered

Use string length as an argument instead of number of bytes
My concern with this was that the user wants control over how random they want the nonce to be, and string length doesn't give them direct control over that. This is because the length can vary based on encoding rather than actual underlying randomness.

@liangyuanruo
Copy link

FYI @kwajiehao @PrawiraGenestonlia the issue arose in this PR comment, when @mantariksh was implementing SGID login for CalSG.

Copy link
Contributor

@PrawiraGenestonlia PrawiraGenestonlia left a comment

Choose a reason for hiding this comment

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

lgtm! Thanks @mantariksh !

@mantariksh mantariksh merged commit ea938fd into develop Jul 28, 2023
@mantariksh mantariksh deleted the feat/generate-nonce-api branch July 28, 2023 08:51
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.

Nonce API is inflexible and inaccurately typed
3 participants