@baasix/types 1.0.1 → 1.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/dist/index.d.mts +4 -0
- package/dist/index.d.ts +4 -0
- package/package.json +3 -4
- package/src/auth.ts +4 -0
package/dist/index.d.mts
CHANGED
|
@@ -152,6 +152,10 @@ interface LoginCredentials {
|
|
|
152
152
|
email: string;
|
|
153
153
|
password: string;
|
|
154
154
|
tenantId?: string;
|
|
155
|
+
/** Authentication mode: 'jwt' for token-based or 'cookie' for cookie-based auth */
|
|
156
|
+
authMode?: "jwt" | "cookie";
|
|
157
|
+
/** Authentication type for session management (e.g., 'web', 'mobile', 'default') */
|
|
158
|
+
authType?: string;
|
|
155
159
|
}
|
|
156
160
|
/**
|
|
157
161
|
* Registration data
|
package/dist/index.d.ts
CHANGED
|
@@ -152,6 +152,10 @@ interface LoginCredentials {
|
|
|
152
152
|
email: string;
|
|
153
153
|
password: string;
|
|
154
154
|
tenantId?: string;
|
|
155
|
+
/** Authentication mode: 'jwt' for token-based or 'cookie' for cookie-based auth */
|
|
156
|
+
authMode?: "jwt" | "cookie";
|
|
157
|
+
/** Authentication type for session management (e.g., 'web', 'mobile', 'default') */
|
|
158
|
+
authType?: string;
|
|
155
159
|
}
|
|
156
160
|
/**
|
|
157
161
|
* Registration data
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@baasix/types",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Shared TypeScript types for Baasix packages",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -35,9 +35,8 @@
|
|
|
35
35
|
"author": "Baasix",
|
|
36
36
|
"license": "MIT",
|
|
37
37
|
"devDependencies": {
|
|
38
|
+
"@types/express": "^4.17.21",
|
|
38
39
|
"tsup": "^8.0.0",
|
|
39
40
|
"typescript": "^5.3.0"
|
|
40
|
-
}
|
|
41
|
-
"peerDependencies": {},
|
|
42
|
-
"peerDependenciesMeta": {}
|
|
41
|
+
}
|
|
43
42
|
}
|
package/src/auth.ts
CHANGED
|
@@ -179,6 +179,10 @@ export interface LoginCredentials {
|
|
|
179
179
|
email: string;
|
|
180
180
|
password: string;
|
|
181
181
|
tenantId?: string;
|
|
182
|
+
/** Authentication mode: 'jwt' for token-based or 'cookie' for cookie-based auth */
|
|
183
|
+
authMode?: "jwt" | "cookie";
|
|
184
|
+
/** Authentication type for session management (e.g., 'web', 'mobile', 'default') */
|
|
185
|
+
authType?: string;
|
|
182
186
|
}
|
|
183
187
|
|
|
184
188
|
/**
|