File tree Expand file tree Collapse file tree 3 files changed +5
-21
lines changed
docs/util/base64url/functions Expand file tree Collapse file tree 3 files changed +5
-21
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ Support from the community to continue maintaining and improving this module is
6
6
7
7
▸ ** decode** (` input ` ): [ ` Uint8Array ` ] ( https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array )
8
8
9
+ Decodes a Base64URL encoded input.
10
+
9
11
## Parameters
10
12
11
13
| Parameter | Type |
Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ Support from the community to continue maintaining and improving this module is
6
6
7
7
▸ ** encode** (` input ` ): ` string `
8
8
9
+ Encodes an input using Base64URL with no padding.
10
+
9
11
## Parameters
10
12
11
13
| Parameter | Type |
Original file line number Diff line number Diff line change 4
4
* @module
5
5
*/
6
6
7
- import * as base64url from '../lib/base64url.js'
8
-
9
- /**
10
- * Utility function to encode a string or {@link !Uint8Array} as a base64url string.
11
- *
12
- * @param input Value that will be base64url-encoded.
13
- */
14
- interface Base64UrlEncode {
15
- ( input : Uint8Array | string ) : string
16
- }
17
- /**
18
- * Utility function to decode a base64url encoded string.
19
- *
20
- * @param input Value that will be base64url-decoded.
21
- */
22
- interface Base64UrlDecode {
23
- ( input : Uint8Array | string ) : Uint8Array
24
- }
25
-
26
- export const encode : Base64UrlEncode = base64url . encode
27
- export const decode : Base64UrlDecode = base64url . decode
7
+ export { encode , decode } from '../lib/base64url.js'
You can’t perform that action at this time.
0 commit comments