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

Change chain_id to string #333

Merged
merged 2 commits into from
Aug 13, 2024
Merged

Change chain_id to string #333

merged 2 commits into from
Aug 13, 2024

Conversation

jennifer-stytch
Copy link
Contributor

@jennifer-stytch jennifer-stytch commented Aug 13, 2024

Changes the SIWE ChainID type to a string. Since SIWE isn't released yet, I'm marking this as a minor version bump.

Comment on lines +244 to +256
* Authenticate an access token issued by Stytch from the Token endpoint.
* M2M access tokens are JWTs signed with the project's JWKs, and can be validated locally using any Stytch client library.
* You may pass in an optional set of scopes that the JWT must contain in order to enforce permissions.
* You may also override the default scope authorization function to implement custom authorization logic.
*
* @param data {@link AuthenticateTokenRequest}
* @param scopeAuthorizationFunc {@link ScopeAuthorizationFunc} - A function that checks if the token has the required scopes.
The default function assumes scopes are either direct string matches or written in the form "action:resource". See the
documentation for {@link performAuthorizationCheck} for more information.
* @async
* @returns {@link AuthenticateTokenResponse}
* @throws {ClientError} when token can not be authenticated
*/
Copy link
Contributor

Choose a reason for hiding this comment

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

formatting?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, not sure what's going on with the formatting here :/

@jennifer-stytch jennifer-stytch merged commit 0e6bd13 into main Aug 13, 2024
8 of 11 checks passed
@jennifer-stytch jennifer-stytch deleted the jmccleary/siwe-chain-id branch August 13, 2024 21:07
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.

2 participants