@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.
Files changed (2) hide show
  1. package/README.md +8 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # as-jwt
2
2
 
3
+ [![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/G-Core/as-jwt/deploy.yaml)](https://github.com/G-Core/as-jwt)
4
+ [![GitHub commit activity](https://img.shields.io/github/commit-activity/t/G-Core/as-jwt)](https://github.com/G-Core/as-jwt)
5
+ [![GitHub top language](https://img.shields.io/github/languages/top/G-Core/as-jwt)](https://github.com/G-Core/as-jwt)
6
+ [![GitHub License](https://img.shields.io/github/license/G-Core/as-jwt)](https://github.com/G-Core/as-jwt/blob/main/LICENSE)
7
+ [![NPM Version](https://img.shields.io/npm/v/@gcoredev/as-jwt)](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
- ```json
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
- ```json
73
+ ```
68
74
  {
69
75
  "alg": "HS256",
70
76
  "typ": "JWT"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gcoredev/as-jwt",
3
- "version": "1.0.0-alpha.2",
3
+ "version": "1.0.1",
4
4
  "description": "AssemblyScript package that provides simple jws handling for jwt tokens/",
5
5
  "main": "assembly/index.ts",
6
6
  "type": "module",