@gcoredev/as-jwt 1.0.0-alpha.2 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# as-jwt
|
|
2
2
|
|
|
3
|
+
[](https://github.com/G-Core/as-jwt)
|
|
4
|
+
[](https://github.com/G-Core/as-jwt)
|
|
5
|
+
[](https://github.com/G-Core/as-jwt)
|
|
6
|
+
[](https://github.com/G-Core/as-jwt/blob/main/LICENSE)
|
|
7
|
+
[](https://www.npmjs.com/package/@gcoredev/as-jwt)
|
|
8
|
+
|
|
3
9
|
AssemblyScript package that provides simple jws handling for jwt tokens.
|
|
4
10
|
|
|
5
11
|
## Installation:
|
|
@@ -49,7 +55,7 @@ At present there are some issues with JWS tokens signed using SHA256.
|
|
|
49
55
|
|
|
50
56
|
A basic token containing:
|
|
51
57
|
|
|
52
|
-
```
|
|
58
|
+
```
|
|
53
59
|
{
|
|
54
60
|
"alg": "HS256",
|
|
55
61
|
"typ": "JWT"
|
|
@@ -64,7 +70,7 @@ Will `pass` compactVerify(), however adding an extra field like `exp` value will
|
|
|
64
70
|
|
|
65
71
|
It is possible to still use verifyJwt() with `SHA256` however you will need to keep to max 3 claims. e.g.
|
|
66
72
|
|
|
67
|
-
```
|
|
73
|
+
```
|
|
68
74
|
{
|
|
69
75
|
"alg": "HS256",
|
|
70
76
|
"typ": "JWT"
|