@antelopejs/auth-jwt 1.1.1 → 1.1.3-next.89.gc90f940
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 +31 -10
- package/dist/test/antelope.test.js +2 -1
- package/dist/test/antelope.test.js.map +1 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
<a href="https://github.com/AntelopeJS/antelopejs"><img data-illustration src="./.github/readme/strip.svg" width="100%" alt="PROVIDER · AUTH JWT: part of AntelopeJS, hexagonal architecture beyond your own code. A glowing button reads Star AntelopeJS."></a>
|
|
2
2
|
|
|
3
3
|
<div align="center">
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
<a href="https://interfaces.antelopejs.com/docs/auth/introduction"><img data-illustration src="https://img.shields.io/badge/Docs-18181B?style=for-the-badge&color=000000" alt="
|
|
4
|
+
|
|
5
|
+
# `@antelopejs/auth-jwt`
|
|
6
|
+
|
|
7
|
+
<a href="https://www.npmjs.com/package/@antelopejs/auth-jwt"><img data-illustration alt="npm" src="https://img.shields.io/npm/v/@antelopejs/auth-jwt?style=for-the-badge&labelColor=000000&color=000000"></a> <a href="./LICENSE"><img data-illustration alt="License" src="https://img.shields.io/npm/l/@antelopejs/auth-jwt?style=for-the-badge&labelColor=000000&color=000000"></a> <a href="https://discord.gg/g4pFt6eXqu"><img data-illustration alt="Discord" src="https://img.shields.io/badge/Discord-18181B?logo=discord&style=for-the-badge&color=000000"></a> <a href="https://interfaces.antelopejs.com/docs/auth/introduction"><img data-illustration alt="Documentation" src="https://img.shields.io/badge/Docs-18181B?style=for-the-badge&color=000000"></a> <a href="https://github.com/AntelopeJS/antelopejs"><img data-illustration alt="Star AntelopeJS" src="https://img.shields.io/github/stars/AntelopeJS/antelopejs?label=Star%20AntelopeJS&style=for-the-badge&labelColor=000000&color=000000&logo=github"></a>
|
|
8
|
+
|
|
9
|
+
**The AntelopeJS authentication module. It signs and verifies tokens as JSON Web Tokens.**
|
|
10
|
+
|
|
11
|
+
[Documentation](https://interfaces.antelopejs.com/docs/auth/introduction) · [Interfaces](#interfaces) · [All interfaces and providers](https://github.com/AntelopeJS/antelopejs#ecosystem)
|
|
12
|
+
|
|
8
13
|
</div>
|
|
9
14
|
|
|
10
15
|
The AntelopeJS authentication module. It implements `@antelopejs/interface-auth` and signs and verifies its tokens as JSON Web Tokens with [`jsonwebtoken`](https://github.com/auth0/node-jsonwebtoken).
|
|
11
16
|
|
|
12
|
-
Part of [AntelopeJS](https://github.com/AntelopeJS/antelopejs). Used by [AntelopeJS DMS](https://github.com/AntelopeJS/dms), the open-source back office for your PostgreSQL, MongoDB or RethinkDB database.
|
|
13
|
-
|
|
14
17
|
## Interfaces
|
|
15
18
|
|
|
16
19
|
| Interface | Documentation |
|
|
@@ -42,7 +45,7 @@ export default defineConfig({
|
|
|
42
45
|
source: {
|
|
43
46
|
type: "package",
|
|
44
47
|
package: "@antelopejs/auth-jwt",
|
|
45
|
-
version: "
|
|
48
|
+
version: "~1.1.0",
|
|
46
49
|
},
|
|
47
50
|
config: {
|
|
48
51
|
secret: "change-me",
|
|
@@ -136,9 +139,9 @@ export class SessionController extends Controller("/session") {
|
|
|
136
139
|
|
|
137
140
|
| Package | Supported | Tested with |
|
|
138
141
|
| ---------------------------- | ---------------- | ----------- |
|
|
139
|
-
| `@antelopejs/interface-api` | `>=0.
|
|
142
|
+
| `@antelopejs/interface-api` | `>=0.3.0 <0.4.0` | `0.3.2` |
|
|
140
143
|
| `@antelopejs/interface-auth` | `>=0.2.0 <0.3.0` | `0.2.0` |
|
|
141
|
-
| `@antelopejs/interface-core` | `>=0.
|
|
144
|
+
| `@antelopejs/interface-core` | `>=0.5.1 <0.6.0` | `0.5.1` |
|
|
142
145
|
|
|
143
146
|
<!-- antelopejs-docs-compat:end -->
|
|
144
147
|
|
|
@@ -157,6 +160,24 @@ pnpm test # build, then ajs module test
|
|
|
157
160
|
|
|
158
161
|
Read the [contribution guidelines](CONTRIBUTING.md) before opening a pull request.
|
|
159
162
|
|
|
163
|
+
## Part of AntelopeJS
|
|
164
|
+
|
|
165
|
+
This package belongs to [AntelopeJS](https://github.com/AntelopeJS/antelopejs), the TypeScript framework where modules depend on contracts and the application chooses the provider. The open-source back office [AntelopeJS DMS](https://github.com/AntelopeJS/dms) is built on it.
|
|
166
|
+
|
|
167
|
+
<!-- antelopejs-framework-modules:start -->
|
|
168
|
+
|
|
169
|
+
| Area | Contracts | Providers |
|
|
170
|
+
| ------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
171
|
+
| API | [`interface-api`](https://github.com/AntelopeJS/interface-api) · [`interface-api-util`](https://github.com/AntelopeJS/interface-api-util) · [`interface-data-api`](https://github.com/AntelopeJS/interface-data-api) | [`api`](https://github.com/AntelopeJS/api) |
|
|
172
|
+
| Auth | [`interface-auth`](https://github.com/AntelopeJS/interface-auth) | **`auth-jwt`** |
|
|
173
|
+
| Database | [`interface-database`](https://github.com/AntelopeJS/interface-database) · [`interface-database-decorators`](https://github.com/AntelopeJS/interface-database-decorators) · [`interface-database-catalog`](https://github.com/AntelopeJS/interface-database-catalog) · [`interface-mongodb`](https://github.com/AntelopeJS/interface-mongodb) · [`interface-rethinkdb`](https://github.com/AntelopeJS/interface-rethinkdb) | [`postgres`](https://github.com/AntelopeJS/postgres) · [`mysql`](https://github.com/AntelopeJS/mysql) · [`mongodb`](https://github.com/AntelopeJS/mongodb) · [`rethinkdb`](https://github.com/AntelopeJS/rethinkdb) |
|
|
174
|
+
| Redis | [`interface-redis`](https://github.com/AntelopeJS/interface-redis) · [`interface-redis-scheduler`](https://github.com/AntelopeJS/interface-redis-scheduler) | [`redis`](https://github.com/AntelopeJS/redis) |
|
|
175
|
+
| Email | [`interface-email`](https://github.com/AntelopeJS/interface-email) | [`nodemailer`](https://github.com/AntelopeJS/nodemailer) · [`brevo`](https://github.com/AntelopeJS/brevo) |
|
|
176
|
+
| File storage | [`interface-file-storage`](https://github.com/AntelopeJS/interface-file-storage) | [`file-storage-local`](https://github.com/AntelopeJS/file-storage-local) · [`file-storage-s3`](https://github.com/AntelopeJS/file-storage-s3) |
|
|
177
|
+
| Payments | [`interface-payment`](https://github.com/AntelopeJS/interface-payment) · [`interface-subscriptions`](https://github.com/AntelopeJS/interface-subscriptions) · [`interface-stripe`](https://github.com/AntelopeJS/interface-stripe) | [`stripe`](https://github.com/AntelopeJS/stripe) · [`mollie`](https://github.com/AntelopeJS/mollie) · [`checkout-com`](https://github.com/AntelopeJS/checkout-com) · [`payment-subscriptions`](https://github.com/AntelopeJS/payment-subscriptions) |
|
|
178
|
+
|
|
179
|
+
<!-- antelopejs-framework-modules:end -->
|
|
180
|
+
|
|
160
181
|
## License
|
|
161
182
|
|
|
162
183
|
[Apache-2.0](LICENSE)
|
|
@@ -13,9 +13,10 @@ exports.default = (0, config_1.defineConfig)({
|
|
|
13
13
|
source: {
|
|
14
14
|
type: "package",
|
|
15
15
|
package: "@antelopejs/api",
|
|
16
|
-
version: "1.
|
|
16
|
+
version: "1.7.3",
|
|
17
17
|
},
|
|
18
18
|
config: {
|
|
19
|
+
publicBaseUrl: "http://127.0.0.1:5010",
|
|
19
20
|
servers: [{ protocol: "http", host: "127.0.0.1", port: 5010 }],
|
|
20
21
|
},
|
|
21
22
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"antelope.test.js","sourceRoot":"","sources":["../../src/test/antelope.test.ts"],"names":[],"mappings":";;AAAA,8DAAiE;AAEjE,kBAAe,IAAA,qBAAY,EAAC;IAC1B,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE,iBAAiB;IAC9B,OAAO,EAAE;QACP,KAAK,EAAE;YACL,MAAM,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE;YACpC,MAAM,EAAE,EAAE,MAAM,EAAE,yBAAyB,EAAE;SAC9C;QACD,GAAG,EAAE;YACH,MAAM,EAAE;gBACN,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,iBAAiB;gBAC1B,OAAO,EAAE,OAAO;aACjB;YACD,MAAM,EAAE;gBACN,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;aAC/D;SACF;KACF;IACD,IAAI,EAAE;QACJ,MAAM,EAAE,WAAW;KACpB;CACF,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"antelope.test.js","sourceRoot":"","sources":["../../src/test/antelope.test.ts"],"names":[],"mappings":";;AAAA,8DAAiE;AAEjE,kBAAe,IAAA,qBAAY,EAAC;IAC1B,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE,iBAAiB;IAC9B,OAAO,EAAE;QACP,KAAK,EAAE;YACL,MAAM,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE;YACpC,MAAM,EAAE,EAAE,MAAM,EAAE,yBAAyB,EAAE;SAC9C;QACD,GAAG,EAAE;YACH,MAAM,EAAE;gBACN,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,iBAAiB;gBAC1B,OAAO,EAAE,OAAO;aACjB;YACD,MAAM,EAAE;gBACN,aAAa,EAAE,uBAAuB;gBACtC,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;aAC/D;SACF;KACF;IACD,IAAI,EAAE;QACJ,MAAM,EAAE,WAAW;KACpB;CACF,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antelopejs/auth-jwt",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3-next.89.gc90f940",
|
|
4
4
|
"description": "JWT authentication module for AntelopeJS, implementing the Auth interface with jsonwebtoken",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"antelopejs",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"dev": "ajs project dev -w -p playground",
|
|
33
33
|
"format": "oxfmt .",
|
|
34
34
|
"lint:fix": "oxlint --fix",
|
|
35
|
-
"lint": "oxlint
|
|
35
|
+
"lint": "oxlint",
|
|
36
36
|
"prepack": "pnpm run build",
|
|
37
37
|
"release": "pnpm run typecheck && pnpm run lint && pnpm run test && pnpm run prepack && release-it",
|
|
38
38
|
"test": "pnpm run build && ajs module test",
|
|
@@ -48,15 +48,15 @@
|
|
|
48
48
|
"suppressions:update": "antelopejs-suppressions --update"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@antelopejs/interface-api": ">=0.
|
|
51
|
+
"@antelopejs/interface-api": ">=0.3.0 <0.4.0",
|
|
52
52
|
"@antelopejs/interface-auth": ">=0.2.0 <0.3.0",
|
|
53
|
-
"@antelopejs/interface-core": ">=0.
|
|
53
|
+
"@antelopejs/interface-core": ">=0.5.1 <0.6.0",
|
|
54
54
|
"chai": "^4.5.0",
|
|
55
55
|
"jsonwebtoken": "^9.0.3"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@antelopejs/core": "
|
|
59
|
-
"@antelopejs/tooling-configs": "
|
|
58
|
+
"@antelopejs/core": "~1.23.0",
|
|
59
|
+
"@antelopejs/tooling-configs": ">=0.8.0 <0.9.0",
|
|
60
60
|
"@types/chai": "^4.3.20",
|
|
61
61
|
"@types/jsonwebtoken": "^9.0.10",
|
|
62
62
|
"@types/mocha": "^10.0.10",
|