|
8 | 8 | <source media="(prefers-color-scheme: dark)" srcset="./sponsor/Auth0byOkta_dark.png">
|
9 | 9 | <source media="(prefers-color-scheme: light)" srcset="./sponsor/Auth0byOkta_light.png">
|
10 | 10 | <img height="65" align="left" alt="Auth0 by Okta" src="./sponsor/Auth0byOkta_light.png">
|
11 |
| -</picture> |
| 11 | +</picture> |
12 | 12 |
|
13 | 13 | If you want to quickly add JWT authentication to JavaScript apps, feel free to check out Auth0's JavaScript SDK and free plan. [Create an Auth0 account; it's free!][sponsor-auth0]<br><br>
|
14 | 14 |
|
@@ -38,69 +38,69 @@ const jose = require('jose')
|
38 | 38 |
|
39 | 39 | The `jose` module supports JSON Web Tokens (JWT) and provides functionality for signing and verifying tokens, as well as their JWT Claims Set validation.
|
40 | 40 |
|
41 |
| -- [JWT Claims Set Validation & Signature Verification](docs/functions/jwt_verify.jwtVerify.md) using the `jwtVerify` function |
42 |
| - - [Using a remote JSON Web Key Set (JWKS)](docs/functions/jwks_remote.createRemoteJWKSet.md) |
43 |
| - - [Using a local JSON Web Key Set (JWKS)](docs/functions/jwks_local.createLocalJWKSet.md) |
44 |
| -- [Signing](docs/classes/jwt_sign.SignJWT.md) using the `SignJWT` class |
| 41 | +- [JWT Claims Set Validation & Signature Verification](docs/jwt/verify/functions/jwtVerify.md) using the `jwtVerify` function |
| 42 | + - [Using a remote JSON Web Key Set (JWKS)](docs/jwks/remote/functions/createRemoteJWKSet.md) |
| 43 | + - [Using a local JSON Web Key Set (JWKS)](docs/jwks/local/functions/createLocalJWKSet.md) |
| 44 | +- [Signing](docs/jwt/sign/classes/SignJWT.md) using the `SignJWT` class |
45 | 45 | - Utility functions
|
46 |
| - - [Decoding Token's Protected Header](docs/functions/util_decode_protected_header.decodeProtectedHeader.md) |
47 |
| - - [Decoding JWT Claims Set](docs/functions/util_decode_jwt.decodeJwt.md) prior to its validation |
| 46 | + - [Decoding Token's Protected Header](docs/util/decode_protected_header/functions/decodeProtectedHeader.md) |
| 47 | + - [Decoding JWT Claims Set](docs/util/decode_jwt/functions/decodeJwt.md) prior to its validation |
48 | 48 |
|
49 | 49 | ### Encrypted JSON Web Tokens
|
50 | 50 |
|
51 | 51 | The `jose` module supports encrypted JSON Web Tokens and provides functionality for encrypting and decrypting tokens, as well as their JWT Claims Set validation.
|
52 | 52 |
|
53 |
| -- [Decryption & JWT Claims Set Validation](docs/functions/jwt_decrypt.jwtDecrypt.md) using the `jwtDecrypt` function |
54 |
| -- [Encryption](docs/classes/jwt_encrypt.EncryptJWT.md) using the `EncryptJWT` class |
| 53 | +- [Decryption & JWT Claims Set Validation](docs/jwt/decrypt/functions/jwtDecrypt.md) using the `jwtDecrypt` function |
| 54 | +- [Encryption](docs/jwt/encrypt/classes/EncryptJWT.md) using the `EncryptJWT` class |
55 | 55 | - Utility functions
|
56 |
| - - [Decoding Token's Protected Header](docs/functions/util_decode_protected_header.decodeProtectedHeader.md) |
| 56 | + - [Decoding Token's Protected Header](docs/util/decode_protected_header/functions/decodeProtectedHeader.md) |
57 | 57 |
|
58 | 58 | ### Key Utilities
|
59 | 59 |
|
60 | 60 | The `jose` module supports importing, exporting, and generating keys and secrets in various formats, including PEM formats like SPKI, X.509 certificate, and PKCS #8, as well as JSON Web Key (JWK).
|
61 | 61 |
|
62 | 62 | - Key Import Functions
|
63 |
| - - [JWK Import](docs/functions/key_import.importJWK.md) |
64 |
| - - [Public Key Import (SPKI)](docs/functions/key_import.importSPKI.md) |
65 |
| - - [Public Key Import (X.509 Certificate)](docs/functions/key_import.importX509.md) |
66 |
| - - [Private Key Import (PKCS #8)](docs/functions/key_import.importPKCS8.md) |
| 63 | + - [JWK Import](docs/key/import/functions/importJWK.md) |
| 64 | + - [Public Key Import (SPKI)](docs/key/import/functions/importSPKI.md) |
| 65 | + - [Public Key Import (X.509 Certificate)](docs/key/import/functions/importX509.md) |
| 66 | + - [Private Key Import (PKCS #8)](docs/key/import/functions/importPKCS8.md) |
67 | 67 | - Key and Secret Generation Functions
|
68 |
| - - [Asymmetric Key Pair Generation](docs/functions/key_generate_key_pair.generateKeyPair.md) |
69 |
| - - [Symmetric Secret Generation](docs/functions/key_generate_secret.generateSecret.md) |
| 68 | + - [Asymmetric Key Pair Generation](docs/key/generate_key_pair/functions/generateKeyPair.md) |
| 69 | + - [Symmetric Secret Generation](docs/key/generate_secret/functions/generateSecret.md) |
70 | 70 | - Key Export Functions
|
71 |
| - - [JWK Export](docs/functions/key_export.exportJWK.md) |
72 |
| - - [Private Key Export](docs/functions/key_export.exportPKCS8.md) |
73 |
| - - [Public Key Export](docs/functions/key_export.exportSPKI.md) |
| 71 | + - [JWK Export](docs/key/export/functions/exportJWK.md) |
| 72 | + - [Private Key Export](docs/key/export/functions/exportPKCS8.md) |
| 73 | + - [Public Key Export](docs/key/export/functions/exportSPKI.md) |
74 | 74 |
|
75 | 75 | ### JSON Web Signature (JWS)
|
76 | 76 |
|
77 | 77 | The `jose` module supports signing and verification of JWS messages with arbitrary payloads in Compact, Flattened JSON, and General JSON serialization syntaxes.
|
78 | 78 |
|
79 |
| -- Signing - [Compact](docs/classes/jws_compact_sign.CompactSign.md), [Flattened JSON](docs/classes/jws_flattened_sign.FlattenedSign.md), [General JSON](docs/classes/jws_general_sign.GeneralSign.md) |
80 |
| -- Verification - [Compact](docs/functions/jws_compact_verify.compactVerify.md), [Flattened JSON](docs/functions/jws_flattened_verify.flattenedVerify.md), [General JSON](docs/functions/jws_general_verify.generalVerify.md) |
81 |
| - - [Using a remote JSON Web Key Set (JWKS)](docs/functions/jwks_remote.createRemoteJWKSet.md) |
82 |
| - - [Using a local JSON Web Key Set (JWKS)](docs/functions/jwks_local.createLocalJWKSet.md) |
| 79 | +- Signing - [Compact](docs/jws/compact/sign/classes/CompactSign.md), [Flattened JSON](docs/jws/flattened/sign/classes/FlattenedSign.md), [General JSON](docs/jws/general/sign/classes/GeneralSign.md) |
| 80 | +- Verification - [Compact](docs/jws/compact/verify/functions/compactVerify.md), [Flattened JSON](docs/jws/flattened/verify/functions/flattenedVerify.md), [General JSON](docs/jws/general/verify/functions/generalVerify.md) |
| 81 | + - [Using a remote JSON Web Key Set (JWKS)](docs/jwks/remote/functions/createRemoteJWKSet.md) |
| 82 | + - [Using a local JSON Web Key Set (JWKS)](docs/jwks/local/functions/createLocalJWKSet.md) |
83 | 83 | - Utility functions
|
84 |
| - - [Decoding Token's Protected Header](docs/functions/util_decode_protected_header.decodeProtectedHeader.md) |
| 84 | + - [Decoding Token's Protected Header](docs/util/decode_protected_header/functions/decodeProtectedHeader.md) |
85 | 85 |
|
86 | 86 | ### JSON Web Encryption (JWE)
|
87 | 87 |
|
88 | 88 | The `jose` module supports encryption and decryption of JWE messages with arbitrary plaintext in Compact, Flattened JSON, and General JSON serialization syntaxes.
|
89 | 89 |
|
90 |
| -- Encryption - [Compact](docs/classes/jwe_compact_encrypt.CompactEncrypt.md), [Flattened JSON](docs/classes/jwe_flattened_encrypt.FlattenedEncrypt.md), [General JSON](docs/classes/jwe_general_encrypt.GeneralEncrypt.md) |
91 |
| -- Decryption - [Compact](docs/functions/jwe_compact_decrypt.compactDecrypt.md), [Flattened JSON](docs/functions/jwe_flattened_decrypt.flattenedDecrypt.md), [General JSON](docs/functions/jwe_general_decrypt.generalDecrypt.md) |
| 90 | +- Encryption - [Compact](docs/jwe/compact/encrypt/classes/CompactEncrypt.md), [Flattened JSON](docs/jwe/flattened/encrypt/classes/FlattenedEncrypt.md), [General JSON](docs/jwe/general/encrypt/classes/GeneralEncrypt.md) |
| 91 | +- Decryption - [Compact](docs/jwe/compact/decrypt/functions/compactDecrypt.md), [Flattened JSON](docs/jwe/flattened/decrypt/functions/flattenedDecrypt.md), [General JSON](docs/jwe/general/decrypt/functions/generalDecrypt.md) |
92 | 92 | - Utility functions
|
93 |
| - - [Decoding Token's Protected Header](docs/functions/util_decode_protected_header.decodeProtectedHeader.md) |
| 93 | + - [Decoding Token's Protected Header](docs/util/decode_protected_header/functions/decodeProtectedHeader.md) |
94 | 94 |
|
95 | 95 | ### Other
|
96 | 96 |
|
97 | 97 | The following are additional features and utilities provided by the `jose` module:
|
98 | 98 |
|
99 |
| -- [Calculating JWK Thumbprint](docs/functions/jwk_thumbprint.calculateJwkThumbprint.md) |
100 |
| -- [Calculating JWK Thumbprint URI](docs/functions/jwk_thumbprint.calculateJwkThumbprintUri.md) |
101 |
| -- [Verification using a JWK Embedded in a JWS Header](docs/functions/jwk_embedded.EmbeddedJWK.md) |
102 |
| -- [Unsecured JWT](docs/classes/jwt_unsecured.UnsecuredJWT.md) |
103 |
| -- [JOSE Errors](docs/modules/util_errors.md) |
| 99 | +- [Calculating JWK Thumbprint](docs/jwk/thumbprint/functions/calculateJwkThumbprint.md) |
| 100 | +- [Calculating JWK Thumbprint URI](docs/jwk/thumbprint/functions/calculateJwkThumbprintUri.md) |
| 101 | +- [Verification using a JWK Embedded in a JWS Header](docs/jwk/embedded/functions/EmbeddedJWK.md) |
| 102 | +- [Unsecured JWT](docs/jwt/unsecured/classes/UnsecuredJWT.md) |
| 103 | +- [JOSE Errors](docs/util/errors/README.md) |
104 | 104 |
|
105 | 105 | ## Supported Runtimes
|
106 | 106 |
|
|
0 commit comments