@canton-network/core-wallet-auth 0.1.0 → 0.1.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/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "@canton-network/core-wallet-auth",
3
- "version": "0.1.0",
4
- "description": "Provides authentcation middleware and user management for the wallet kernel.",
5
- "author": "Marc Juchli <marc.juchli@digitalasset.com>",
3
+ "version": "0.1.1",
4
+ "type": "module",
5
+ "description": "Provides authentication middleware and user management for the wallet kernel",
6
+ "repository": "github:hyperledger-labs/splice-wallet-kernel",
6
7
  "license": "Apache-2.0",
7
- "packageManager": "yarn@4.9.2",
8
+ "author": "Marc Juchli <marc.juchli@digitalasset.com>",
9
+ "packageManager": "yarn@4.9.4",
8
10
  "main": "./dist/index.js",
9
11
  "types": "./dist/index.d.ts",
10
- "type": "module",
11
12
  "scripts": {
12
13
  "build": "tsc -b",
13
14
  "dev": "tsc -b --watch",
@@ -25,10 +26,10 @@
25
26
  "typescript": "^5.8.3"
26
27
  },
27
28
  "dependencies": {
28
- "@canton-network/core-types": "^0.1.0"
29
+ "@canton-network/core-types": "^0.1.1"
29
30
  },
30
31
  "files": [
31
- "dist/*"
32
+ "dist/**"
32
33
  ],
33
34
  "publishConfig": {
34
35
  "access": "public"
@@ -1,13 +0,0 @@
1
- export type UserId = string;
2
- export interface AuthContext {
3
- userId: UserId;
4
- accessToken: string;
5
- }
6
- export interface AuthService {
7
- verifyToken(accessToken?: string): Promise<AuthContext | undefined>;
8
- }
9
- export interface AuthAware<T> {
10
- authContext: AuthContext | undefined;
11
- withAuthContext: (context?: AuthContext) => T;
12
- }
13
- //# sourceMappingURL=AuthService.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AuthService.d.ts","sourceRoot":"","sources":["../src/AuthService.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,MAAM,GAAG,MAAM,CAAA;AAE3B,MAAM,WAAW,WAAW;IACxB,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,MAAM,CAAA;CACtB;AAED,MAAM,WAAW,WAAW;IACxB,WAAW,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,GAAG,SAAS,CAAC,CAAA;CACtE;AAED,MAAM,WAAW,SAAS,CAAC,CAAC;IACxB,WAAW,EAAE,WAAW,GAAG,SAAS,CAAA;IACpC,eAAe,EAAE,CAAC,OAAO,CAAC,EAAE,WAAW,KAAK,CAAC,CAAA;CAChD"}
@@ -1 +0,0 @@
1
- export {};