@antelopejs/interface-auth 0.0.2 → 0.0.3

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 CHANGED
@@ -3,38 +3,28 @@
3
3
  # Interface Auth
4
4
 
5
5
  <div align="center">
6
+ <a href="https://www.npmjs.com/package/@antelopejs/interface-auth"><img src="https://img.shields.io/npm/v/@antelopejs/interface-auth?style=for-the-badge&labelColor=000000&color=000000" alt="npm"></a>
6
7
  <a href="./LICENSE"><img alt="License" src="https://img.shields.io/badge/License-Apache_2.0-blue.svg?style=for-the-badge&labelColor=000000"></a>
7
8
  <a href="https://discord.gg/sjK28QHrA7"><img src="https://img.shields.io/badge/Discord-18181B?logo=discord&style=for-the-badge&color=000000" alt="Discord"></a>
8
9
  <a href="./docs/1.introduction.md"><img src="https://img.shields.io/badge/Docs-18181B?style=for-the-badge&color=000000" alt="Documentation"></a>
9
10
  </div>
10
11
 
11
- A flexible, decorator-based framework for implementing authentication and authorization in TypeScript. Interface Auth simplifies securing API endpoints, validating user credentials, and managing user sessions with a clean, declarative syntax.
12
+ A decorator-based framework for implementing authentication and authorization in TypeScript. Interface Auth provides token signing, verification, and flexible decorator-based parameter injection for securing API endpoints.
12
13
 
13
14
  ## Installation
14
15
 
15
16
  ```bash
16
- ajs module imports add auth@beta
17
+ npm install @antelopejs/interface-auth
17
18
  ```
18
19
 
19
20
  ## Documentation
20
21
 
21
22
  Detailed documentation is available in the `docs` directory:
22
23
 
23
- - [Introduction](./docs/1.introduction.md) - Overview and basic concepts
24
- - [Authentication Basics](./docs/2.authentication.md) - Core authentication concepts and usage
24
+ - [Introduction](./docs/1.introduction.md) - Overview and core concepts
25
+ - [Authentication Basics](./docs/2.authentication.md) - Authentication flow, sources, and verifiers
25
26
  - [Token Handling](./docs/3.token-handling.md) - Token generation and validation
26
- - [Parameter Decoration](./docs/4.parameter-decoration.md) - Authentication decorators and parameter validation
27
-
28
- ## Current Status
29
-
30
- This is the development version (`beta`) of the Interface Auth. It is currently in pre-release stage and may undergo changes before the final release. The interface is not considered stable for production use without understanding that breaking changes may occur.
31
-
32
- ## Versions
33
-
34
- | Version | Link | Status |
35
- | ------- | ---------------------------------------------------------------------------------------- | --------------------------------------------- |
36
- | beta | [auth@beta](https://github.com/AntelopeJS/auth-jwt/tree/main/.antelope/output/auth/beta) | Waiting validation from community to go in v1 |
37
- | 1 | _Not yet released_ | Planned stable release |
27
+ - [Parameter Decoration](./docs/4.parameter-decoration.md) - Authentication decorators and custom providers
38
28
 
39
29
  ## License
40
30
 
@@ -9,31 +9,31 @@ exports.default = (0, config_1.defineConfig)({
9
9
  modules: {
10
10
  "auth-jwt": {
11
11
  source: {
12
- type: "local",
13
- path: "../auth-jwt",
14
- installCommand: ["pnpm install", "npx tsc"],
12
+ type: "package",
13
+ package: "@antelopejs/auth-jwt",
14
+ version: "1.0.0",
15
15
  },
16
16
  config: { secret: "test-secret-key-for-jwt" },
17
17
  },
18
18
  mongodb: {
19
19
  source: {
20
- type: "local",
21
- path: "../mongodb",
22
- installCommand: ["pnpm install", "npx tsc"],
20
+ type: "package",
21
+ package: "@antelopejs/mongodb",
22
+ version: "1.0.0",
23
23
  },
24
24
  },
25
25
  database_decorators: {
26
26
  source: {
27
- type: "local",
28
- path: "../database-decorators",
29
- installCommand: ["pnpm install", "npx tsc"],
27
+ type: "package",
28
+ package: "@antelopejs/database-decorators",
29
+ version: "1.0.0",
30
30
  },
31
31
  },
32
32
  api: {
33
33
  source: {
34
- type: "local",
35
- path: "../api",
36
- installCommand: ["pnpm install", "npx tsc"],
34
+ type: "package",
35
+ package: "@antelopejs/api",
36
+ version: "1.0.0",
37
37
  },
38
38
  config: {
39
39
  servers: [{ protocol: "http", host: "127.0.0.1", port: 5010 }],
@@ -1 +1 @@
1
- {"version":3,"file":"antelope.test.js","sourceRoot":"","sources":["../src/antelope.test.ts"],"names":[],"mappings":";;AAAA,8DAAiE;AACjE,2EAA+D;AAE/D,IAAI,MAAyB,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O;YACX,MAAM,MAAM,CAAC,IAAI,EAAE,CAAC;QACtB,CAAC;KACF;CACF,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antelopejs/interface-auth",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "AntelopeJS interface for JWT authentication and session management",
5
5
  "keywords": [
6
6
  "antelopejs",
@@ -37,20 +37,20 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@antelopejs/interface-api": "^0.0.2",
40
- "@antelopejs/interface-core": "^0.0.2"
40
+ "@antelopejs/interface-core": "^0.0.3"
41
41
  },
42
42
  "devDependencies": {
43
+ "@biomejs/biome": "2.3.2",
43
44
  "@types/chai": "^4.3.20",
44
45
  "@types/mocha": "^10.0.10",
45
- "@types/node": "^22.14.1",
46
- "@biomejs/biome": "2.3.2",
46
+ "@types/node": "^22.19.15",
47
+ "@types/semver": "^7.7.1",
47
48
  "chai": "^4.5.0",
48
- "release-it": "^19.0.2",
49
+ "mongodb-memory-server-core": "^10.4.3",
50
+ "release-it": "^19.2.4",
49
51
  "release-it-changelogen": "^0.1.0",
50
- "rimraf": "^6.0.1",
51
- "typescript": "^5.8.3",
52
- "mongodb-memory-server-core": "^10.1.4",
53
- "@types/semver": "^7.7.0"
52
+ "rimraf": "^6.1.3",
53
+ "typescript": "^5.9.3"
54
54
  },
55
55
  "publishConfig": {
56
56
  "access": "public"