@nocobase/auth 0.10.1-alpha.1 → 0.11.0-alpha.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.
@@ -4,15 +4,15 @@ import { Registry } from '@nocobase/utils';
4
4
  import { Auth, AuthExtend } from './auth';
5
5
  import { JwtOptions, JwtService } from './base/jwt-service';
6
6
  import { ITokenBlacklistService } from './base/token-blacklist-service';
7
- declare type Storer = {
7
+ type Storer = {
8
8
  get: (name: string) => Promise<Model>;
9
9
  };
10
- declare type AuthManagerOptions = {
10
+ type AuthManagerOptions = {
11
11
  authKey: string;
12
12
  default?: string;
13
13
  jwt?: JwtOptions;
14
14
  };
15
- declare type AuthConfig = {
15
+ type AuthConfig = {
16
16
  auth: AuthExtend<Auth>;
17
17
  };
18
18
  export declare class AuthManager {
package/lib/auth.d.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  import { Context } from '@nocobase/actions';
2
2
  import { Model } from '@nocobase/database';
3
- export declare type AuthConfig = {
3
+ export type AuthConfig = {
4
4
  authenticator: Model;
5
5
  options: {
6
6
  [key: string]: any;
7
7
  };
8
8
  ctx: Context;
9
9
  };
10
- export declare type AuthExtend<T extends Auth> = new (config: AuthConfig) => T;
10
+ export type AuthExtend<T extends Auth> = new (config: AuthConfig) => T;
11
11
  interface IAuth {
12
12
  user: Model;
13
13
  check(): Promise<Model>;
@@ -4,7 +4,7 @@ export interface JwtOptions {
4
4
  secret: string;
5
5
  expiresIn?: string;
6
6
  }
7
- export declare type SignPayload = Parameters<typeof jwt.sign>[0];
7
+ export type SignPayload = Parameters<typeof jwt.sign>[0];
8
8
  export declare class JwtService {
9
9
  protected options: JwtOptions;
10
10
  constructor(options?: JwtOptions);
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "@nocobase/auth",
3
- "version": "0.10.1-alpha.1",
3
+ "version": "0.11.0-alpha.1",
4
4
  "description": "",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./lib/index.js",
7
7
  "types": "./lib/index.d.ts",
8
8
  "dependencies": {
9
- "@nocobase/actions": "0.10.1-alpha.1",
10
- "@nocobase/database": "0.10.1-alpha.1",
11
- "@nocobase/resourcer": "0.10.1-alpha.1",
12
- "@nocobase/utils": "0.10.1-alpha.1"
9
+ "@nocobase/actions": "0.11.0-alpha.1",
10
+ "@nocobase/database": "0.11.0-alpha.1",
11
+ "@nocobase/resourcer": "0.11.0-alpha.1",
12
+ "@nocobase/utils": "0.11.0-alpha.1"
13
13
  },
14
14
  "repository": {
15
15
  "type": "git",
16
16
  "url": "git+https://github.com/nocobase/nocobase.git",
17
17
  "directory": "packages/auth"
18
18
  },
19
- "gitHead": "8f415f5e0ee2e72d681f9ab16af5911b52c374a9"
19
+ "gitHead": "7581b6d3a3a54f09f06a9effb7e3e65328281b2b"
20
20
  }