-
-
Notifications
You must be signed in to change notification settings - Fork 326
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: redo exports to support broader tooling
BREAKING CHANGE: All module named exports have moved from subpaths to just "jose". For example, `import { jwtVerify } from 'jose/jwt/verify'` is now just `import { jwtVerify } from 'jose'`. BREAKING CHANGE: All submodule default exports and named have been removed in favour of just "jose" named exports.
- Loading branch information
Showing
50 changed files
with
265 additions
and
508 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Module: key/generate\_key\_pair | ||
|
||
## Table of contents | ||
|
||
### Interfaces | ||
|
||
- [GenerateKeyPairOptions](../interfaces/key_generate_key_pair.GenerateKeyPairOptions.md) | ||
- [GenerateKeyPairResult](../interfaces/key_generate_key_pair.GenerateKeyPairResult.md) | ||
|
||
### Functions | ||
|
||
- [generateKeyPair](../functions/key_generate_key_pair.generateKeyPair.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Module: key/generate\_secret | ||
|
||
## Table of contents | ||
|
||
### Interfaces | ||
|
||
- [GenerateSecretOptions](../interfaces/key_generate_secret.GenerateSecretOptions.md) | ||
|
||
### Functions | ||
|
||
- [generateSecret](../functions/key_generate_secret.generateSecret.md) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
export { compactDecrypt } from './jwe/compact/decrypt.js' | ||
export { flattenedDecrypt } from './jwe/flattened/decrypt.js' | ||
export { generalDecrypt } from './jwe/general/decrypt.js' | ||
|
||
export { compactVerify } from './jws/compact/verify.js' | ||
export { flattenedVerify } from './jws/flattened/verify.js' | ||
export { generalVerify } from './jws/general/verify.js' | ||
|
||
export { jwtVerify } from './jwt/verify.js' | ||
export { jwtDecrypt } from './jwt/decrypt.js' | ||
|
||
export { CompactEncrypt } from './jwe/compact/encrypt.js' | ||
export { FlattenedEncrypt } from './jwe/flattened/encrypt.js' | ||
|
||
export { CompactSign } from './jws/compact/sign.js' | ||
export { FlattenedSign } from './jws/flattened/sign.js' | ||
export { GeneralSign } from './jws/general/sign.js' | ||
|
||
export { SignJWT } from './jwt/sign.js' | ||
export { EncryptJWT } from './jwt/encrypt.js' | ||
|
||
export { calculateJwkThumbprint } from './jwk/thumbprint.js' | ||
export { EmbeddedJWK } from './jwk/embedded.js' | ||
|
||
export { createRemoteJWKSet } from './jwks/remote.js' | ||
|
||
export { UnsecuredJWT } from './jwt/unsecured.js' | ||
|
||
export { exportPKCS8, exportSPKI, exportJWK } from './key/export.js' | ||
|
||
export { importSPKI, importPKCS8, importX509, importJWK } from './key/import.js' | ||
|
||
export { decodeProtectedHeader } from './util/decode_protected_header.js' | ||
|
||
export * as errors from './util/errors.js' | ||
|
||
export { generateKeyPair } from './key/generate_key_pair.js' | ||
export { generateSecret } from './key/generate_secret.js' | ||
|
||
export * as base64url from './util/base64url.js' |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
import { Buffer } from 'buffer' | ||
import { JOSENotSupported } from '../../util/errors.js' | ||
|
||
const tagInteger = 0x02 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.