Skip to content

Commit ffad408

Browse files
committed
docs: update docs building dependencies
1 parent e2f737d commit ffad408

File tree

225 files changed

+4585
-5607
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

225 files changed

+4585
-5607
lines changed

README.md

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<source media="(prefers-color-scheme: dark)" srcset="./sponsor/Auth0byOkta_dark.png">
99
<source media="(prefers-color-scheme: light)" srcset="./sponsor/Auth0byOkta_light.png">
1010
<img height="65" align="left" alt="Auth0 by Okta" src="./sponsor/Auth0byOkta_light.png">
11-
</picture>
11+
</picture>
1212

1313
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>
1414

@@ -38,69 +38,69 @@ const jose = require('jose')
3838

3939
The `jose` module supports JSON Web Tokens (JWT) and provides functionality for signing and verifying tokens, as well as their JWT Claims Set validation.
4040

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
4545
- 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
4848

4949
### Encrypted JSON Web Tokens
5050

5151
The `jose` module supports encrypted JSON Web Tokens and provides functionality for encrypting and decrypting tokens, as well as their JWT Claims Set validation.
5252

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
5555
- 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)
5757

5858
### Key Utilities
5959

6060
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).
6161

6262
- 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)
6767
- 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)
7070
- 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)
7474

7575
### JSON Web Signature (JWS)
7676

7777
The `jose` module supports signing and verification of JWS messages with arbitrary payloads in Compact, Flattened JSON, and General JSON serialization syntaxes.
7878

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)
8383
- 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)
8585

8686
### JSON Web Encryption (JWE)
8787

8888
The `jose` module supports encryption and decryption of JWE messages with arbitrary plaintext in Compact, Flattened JSON, and General JSON serialization syntaxes.
8989

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)
9292
- 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)
9494

9595
### Other
9696

9797
The following are additional features and utilities provided by the `jose` module:
9898

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)
104104

105105
## Supported Runtimes
106106

docs/README.md

Lines changed: 35 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<source media="(prefers-color-scheme: dark)" srcset="../sponsor/Auth0byOkta_dark.png">
99
<source media="(prefers-color-scheme: light)" srcset="../sponsor/Auth0byOkta_light.png">
1010
<img height="65" align="left" alt="Auth0 by Okta" src="../sponsor/Auth0byOkta_light.png">
11-
</picture>
11+
</picture>
1212

1313
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>
1414

@@ -34,68 +34,76 @@ const jose = require('jose')
3434

3535
The `jose` module supports JSON Web Tokens (JWT) and provides functionality for signing and verifying tokens, as well as their JWT Claims Set validation.
3636

37-
- [JWT Claims Set Validation & Signature Verification](functions/jwt_verify.jwtVerify.md) using the `jwtVerify` function
38-
- [Using a remote JSON Web Key Set (JWKS)](functions/jwks_remote.createRemoteJWKSet.md)
39-
- [Using a local JSON Web Key Set (JWKS)](functions/jwks_local.createLocalJWKSet.md)
40-
- [Signing](classes/jwt_sign.SignJWT.md) using the `SignJWT` class
37+
- [JWT Claims Set Validation & Signature Verification](jwt/verify/functions/jwtVerify.md) using the `jwtVerify` function
38+
- [Using a remote JSON Web Key Set (JWKS)](jwks/remote/functions/createRemoteJWKSet.md)
39+
- [Using a local JSON Web Key Set (JWKS)](jwks/local/functions/createLocalJWKSet.md)
40+
- [Signing](jwt/sign/classes/SignJWT.md) using the `SignJWT` class
4141
- Utility functions
42-
- [Decoding Token's Protected Header](functions/util_decode_protected_header.decodeProtectedHeader.md)
43-
- [Decoding JWT Claims Set](functions/util_decode_jwt.decodeJwt.md) prior to its validation
42+
- [Decoding Token's Protected Header](util/decode_protected_header/functions/decodeProtectedHeader.md)
43+
- [Decoding JWT Claims Set](util/decode_jwt/functions/decodeJwt.md) prior to its validation
4444

4545
### Encrypted JSON Web Tokens
4646

4747
The `jose` module supports encrypted JSON Web Tokens and provides functionality for encrypting and decrypting tokens, as well as their JWT Claims Set validation.
4848

49-
- [Decryption & JWT Claims Set Validation](functions/jwt_decrypt.jwtDecrypt.md) using the `jwtDecrypt` function
50-
- [Encryption](classes/jwt_encrypt.EncryptJWT.md) using the `EncryptJWT` class
49+
- [Decryption & JWT Claims Set Validation](jwt/decrypt/functions/jwtDecrypt.md) using the `jwtDecrypt` function
50+
- [Encryption](jwt/encrypt/classes/EncryptJWT.md) using the `EncryptJWT` class
5151
- Utility functions
52-
- [Decoding Token's Protected Header](functions/util_decode_protected_header.decodeProtectedHeader.md)
52+
- [Decoding Token's Protected Header](util/decode_protected_header/functions/decodeProtectedHeader.md)
5353

5454
### Key Utilities
5555

5656
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).
5757

5858
- Key Import Functions
59-
- [JWK Import](functions/key_import.importJWK.md)
60-
- [Public Key Import (SPKI)](functions/key_import.importSPKI.md)
61-
- [Public Key Import (X.509 Certificate)](functions/key_import.importX509.md)
62-
- [Private Key Import (PKCS #8)](functions/key_import.importPKCS8.md)
59+
- [JWK Import](key/import/functions/importJWK.md)
60+
- [Public Key Import (SPKI)](key/import/functions/importSPKI.md)
61+
- [Public Key Import (X.509 Certificate)](key/import/functions/importX509.md)
62+
- [Private Key Import (PKCS #8)](key/import/functions/importPKCS8.md)
6363
- Key and Secret Generation Functions
64-
- [Asymmetric Key Pair Generation](functions/key_generate_key_pair.generateKeyPair.md)
65-
- [Symmetric Secret Generation](functions/key_generate_secret.generateSecret.md)
64+
- [Asymmetric Key Pair Generation](key/generate_key_pair/functions/generateKeyPair.md)
65+
- [Symmetric Secret Generation](key/generate_secret/functions/generateSecret.md)
6666
- Key Export Functions
67-
- [JWK Export](functions/key_export.exportJWK.md)
68-
- [Private Key Export](functions/key_export.exportPKCS8.md)
69-
- [Public Key Export](functions/key_export.exportSPKI.md)
67+
- [JWK Export](key/export/functions/exportJWK.md)
68+
- [Private Key Export](dkey/export/functions/exportPKCS8.md)
69+
- [Public Key Export](dkey/export/functions/exportSPKI.md)
7070

7171
### JSON Web Signature (JWS)
7272

7373
The `jose` module supports signing and verification of JWS messages with arbitrary payloads in Compact, Flattened JSON, and General JSON serialization syntaxes.
7474

75-
- Signing - [Compact](classes/jws_compact_sign.CompactSign.md), [Flattened JSON](classes/jws_flattened_sign.FlattenedSign.md), [General JSON](classes/jws_general_sign.GeneralSign.md)
76-
- Verification - [Compact](functions/jws_compact_verify.compactVerify.md), [Flattened JSON](functions/jws_flattened_verify.flattenedVerify.md), [General JSON](functions/jws_general_verify.generalVerify.md)
77-
- [Using a remote JSON Web Key Set (JWKS)](functions/jwks_remote.createRemoteJWKSet.md)
78-
- [Using a local JSON Web Key Set (JWKS)](functions/jwks_local.createLocalJWKSet.md)
75+
- Signing - [Compact](jws/compact/sign/classes/CompactSign.md), [Flattened JSON](jws/flattened/sign/classes/FlattenedSign.md), [General JSON](jws/general/sign/classes/GeneralSign.md)
76+
- Verification - [Compact](jws/compact/verify/functions/compactVerify.md), [Flattened JSON](jws/flattened/verify/functions/flattenedVerify.md), [General JSON](jws/general/verify/functions/generalVerify.md)
77+
- [Using a remote JSON Web Key Set (JWKS)](jwks/remote/functions/createRemoteJWKSet.md)
78+
- [Using a local JSON Web Key Set (JWKS)](jwks/local/functions/createLocalJWKSet.md)
7979
- Utility functions
80-
- [Decoding Token's Protected Header](functions/util_decode_protected_header.decodeProtectedHeader.md)
80+
- [Decoding Token's Protected Header](util/decode_protected_header/functions/decodeProtectedHeader.md)
8181

8282
### JSON Web Encryption (JWE)
8383

8484
The `jose` module supports encryption and decryption of JWE messages with arbitrary plaintext in Compact, Flattened JSON, and General JSON serialization syntaxes.
8585

86-
- Encryption - [Compact](classes/jwe_compact_encrypt.CompactEncrypt.md), [Flattened JSON](classes/jwe_flattened_encrypt.FlattenedEncrypt.md), [General JSON](classes/jwe_general_encrypt.GeneralEncrypt.md)
87-
- Decryption - [Compact](functions/jwe_compact_decrypt.compactDecrypt.md), [Flattened JSON](functions/jwe_flattened_decrypt.flattenedDecrypt.md), [General JSON](functions/jwe_general_decrypt.generalDecrypt.md)
86+
- Encryption - [Compact](jwe/compact/encrypt/classes/CompactEncrypt.md), [Flattened JSON](jwe/flattened/encrypt/classes/FlattenedEncrypt.md), [General JSON](jwe/general/encrypt/classes/GeneralEncrypt.md)
87+
- Decryption - [Compact](jwe/compact/decrypt/functions/compactDecrypt.md), [Flattened JSON](jwe/flattened/decrypt/functions/flattenedDecrypt.md), [General JSON](jwe/general/decrypt/functions/generalDecrypt.md)
8888
- Utility functions
89-
- [Decoding Token's Protected Header](functions/util_decode_protected_header.decodeProtectedHeader.md)
89+
- [Decoding Token's Protected Header](util/decode_protected_header/functions/decodeProtectedHeader.md)
9090

9191
### Other
9292

9393
The following are additional features and utilities provided by the `jose` module:
9494

95+
<<<<<<< HEAD
9596
- [Calculating JWK Thumbprint](functions/jwk_thumbprint.calculateJwkThumbprint.md)
9697
- [Calculating JWK Thumbprint URI](functions/jwk_thumbprint.calculateJwkThumbprintUri.md)
9798
- [Verification using a JWK Embedded in a JWS Header](functions/jwk_embedded.EmbeddedJWK.md)
9899
- [Unsecured JWT](classes/jwt_unsecured.UnsecuredJWT.md)
99100
- [JOSE Errors](modules/util_errors.md)
100101

101102
[sponsor-auth0]: https://auth0.com/signup?utm_source=external_sites&utm_medium=panva&utm_campaign=devn_signup
103+
=======
104+
- [Calculating JWK Thumbprint](jwk/thumbprint/functions/calculateJwkThumbprint.md)
105+
- [Calculating JWK Thumbprint URI](jwk/thumbprint/functions/calculateJwkThumbprintUri.md)
106+
- [Verification using a JWK Embedded in a JWS Header](jwk/embedded/functions/EmbeddedJWK.md)
107+
- [Unsecured JWT](jwt/unsecured/classes/UnsecuredJWT.md)
108+
- [JOSE Errors](util/errors/README.md)
109+
>>>>>>> d7ce2211 (wip)

0 commit comments

Comments
 (0)