stytchauth / stytch-go

Official Stytch Backend SDK for Go
MIT License
47 stars 10 forks source link

Add option to skip JWKS initialization #143

Closed logan-stytch closed 1 year ago

logan-stytch commented 1 year ago

Adds a WithSkipJWKSInitialization for projects that want to override the default client but do not provide an easy way to initialize the JWKS client. This is somewhat common for testing purposes.

Please note that if you skip JWKS initialization and then call an API method that uses JWKS, it will try to dereference a nil pointer.

Testing

Used a simple test.go script that skipped JWKS and sent an EML image