@archtx/auth 1.1.6 → 1.1.8

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@archtx/auth",
3
- "version": "1.1.6",
3
+ "version": "1.1.8",
4
4
  "description": "Authentication and authorization framework for @archtx",
5
5
  "main": "dist/exports.js",
6
6
  "types": "dist/exports.d.ts",
@@ -12,7 +12,8 @@
12
12
  "license": "MIT",
13
13
  "files": [
14
14
  "assets",
15
- "dist"
15
+ "dist",
16
+ "src"
16
17
  ],
17
18
  "devDependencies": {
18
19
  "@typescript-eslint/eslint-plugin": "^5.48.1",
@@ -0,0 +1,22 @@
1
+ declare global {
2
+ namespace Archtx {
3
+ // Identity interface that can be defined in any package/application
4
+ interface IIdentity {}
5
+ }
6
+ }
7
+
8
+ export type IdentityType = Archtx.IIdentity
9
+ export type TIdentityRef = string | IdentityType
10
+
11
+
12
+ // Example, in the application using this package, you can define the Identity interface like this:
13
+ // declare global {
14
+ // namespace Archtx {
15
+ // interface IIdentity {
16
+ // id: string
17
+ // email: string
18
+ // }
19
+ // }
20
+ // }
21
+
22
+