1.0.7 • Published 1 month ago

jwk-subtle v1.0.7

Weekly downloads
-
License
MIT
Repository
-
Last release
1 month ago

jwk-subtle

Verify RS256 JWT. Uses only crypto.subtle.

To check the Authorization header:

const [scheme, token] = (request.headers.get("Authorization") ?? " ").split(" ");
if (scheme !== "Bearer") new Response("", { status: 401 });
const claims = await verify(token, "https://example.eu.auth0.com/", "http://example.com");
if (!claims) return new Response("", { status: 401 });
1.0.7

1 month ago

1.0.6

6 months ago

1.0.5

6 months ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago