Dan6erbond / sk-auth

Authentication library for use with SvelteKit featuring built-in OAuth providers and zero restriction customization!
MIT License
577 stars 70 forks source link

Does this lib support jwks_uri? #28

Closed Clee681 closed 3 years ago

Clee681 commented 3 years ago

Hello,

For cases where the authorization server rotates the JWT keys (e.g. Okta), does this lib support fetching keys from a jwks_uri?

Dan6erbond commented 3 years ago

Hey, please bring these questions to the GitHub Discussions of this project.

But yes, refreshing tokens shouldn't be an issue. You can manage this process in the token() callback similar to the way it's described in the NextAuth.js documentation.