|
1 | 1 | { |
2 | | - "name": "Tokens", |
3 | | - "description": "Create & verify tokens for authorization purposes.", |
4 | | - "icon": "lock", |
5 | | - "tags": [ |
6 | | - "core", |
7 | | - "utility" |
8 | | - ], |
9 | | - "authors": [ |
10 | | - "rivet-gg", |
11 | | - "NathanFlurry" |
12 | | - ], |
13 | | - "status": "stable", |
14 | | - "scripts": { |
15 | | - "create": { |
16 | | - "name": "Create Token" |
17 | | - }, |
18 | | - "fetch": { |
19 | | - "name": "Fetch Token", |
20 | | - "description": "Get a token by its ID." |
21 | | - }, |
22 | | - "fetch_by_token": { |
23 | | - "name": "Fetch by Token", |
24 | | - "description": "Get a token by its secret token." |
25 | | - }, |
26 | | - "revoke": { |
27 | | - "name": "Revoke Token", |
28 | | - "description": "Revoke a token, preventing it from being used again." |
29 | | - }, |
30 | | - "validate": { |
31 | | - "name": "Validate Token", |
32 | | - "description": "Validate a token. Throws an error if the token is invalid." |
33 | | - }, |
34 | | - "extend": { |
35 | | - "name": "Extend Token", |
36 | | - "description": "Extend or remove the expiration date of a token. (Only works on valid tokens.)" |
37 | | - } |
38 | | - }, |
39 | | - "errors": { |
40 | | - "token_not_found": { |
41 | | - "name": "Token Not Found" |
42 | | - }, |
43 | | - "token_revoked": { |
44 | | - "name": "Token Revoked" |
45 | | - }, |
46 | | - "token_expired": { |
47 | | - "name": "Token Expired" |
48 | | - } |
49 | | - } |
| 2 | + "name": "Tokens", |
| 3 | + "description": "Create & verify tokens for authorization purposes.", |
| 4 | + "icon": "lock", |
| 5 | + "tags": [ |
| 6 | + "core", |
| 7 | + "utility" |
| 8 | + ], |
| 9 | + "authors": [ |
| 10 | + "rivet-gg", |
| 11 | + "NathanFlurry" |
| 12 | + ], |
| 13 | + "status": "stable", |
| 14 | + "scripts": { |
| 15 | + "create": { |
| 16 | + "name": "Create Token" |
| 17 | + }, |
| 18 | + "fetch": { |
| 19 | + "name": "Fetch Token", |
| 20 | + "description": "Get a token by its ID." |
| 21 | + }, |
| 22 | + "fetch_by_token": { |
| 23 | + "name": "Fetch by Token", |
| 24 | + "description": "Get a token by its secret token." |
| 25 | + }, |
| 26 | + "revoke": { |
| 27 | + "name": "Revoke Token", |
| 28 | + "description": "Revoke a token, preventing it from being used again." |
| 29 | + }, |
| 30 | + "validate": { |
| 31 | + "name": "Validate Token", |
| 32 | + "description": "Validate a token. Throws an error if the token is invalid." |
| 33 | + }, |
| 34 | + "extend": { |
| 35 | + "name": "Extend Token", |
| 36 | + "description": "Extend or remove the expiration date of a token. (Only works on valid tokens.)" |
| 37 | + }, |
| 38 | + "modify_meta": { |
| 39 | + "name": "Modify Token Metadata", |
| 40 | + "description": "Modify the token's associated metadata, additionally returning the old metadata. (Only works on valid tokens.)" |
| 41 | + } |
| 42 | + }, |
| 43 | + "errors": { |
| 44 | + "token_not_found": { |
| 45 | + "name": "Token Not Found" |
| 46 | + }, |
| 47 | + "token_revoked": { |
| 48 | + "name": "Token Revoked" |
| 49 | + }, |
| 50 | + "token_expired": { |
| 51 | + "name": "Token Expired" |
| 52 | + } |
| 53 | + } |
50 | 54 | } |
0 commit comments