1.0.7 • Published 2 years ago

jwk-subtle v1.0.7

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years 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

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago