@baasix/sdk 0.1.4 → 0.1.5
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 +18 -0
- package/dist/index.cjs +11 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -1
- package/dist/index.js.map +1 -1
- package/dist/modules/auth.cjs +11 -1
- package/dist/modules/auth.cjs.map +1 -1
- package/dist/modules/auth.d.cts +8 -0
- package/dist/modules/auth.d.ts +8 -0
- package/dist/modules/auth.js +11 -1
- package/dist/modules/auth.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -557,6 +557,14 @@ var AuthModule = class {
|
|
|
557
557
|
* password: 'password123',
|
|
558
558
|
* tenantId: 'tenant-uuid'
|
|
559
559
|
* });
|
|
560
|
+
*
|
|
561
|
+
* // Login with authMode and authType
|
|
562
|
+
* const result = await baasix.auth.login({
|
|
563
|
+
* email: 'user@example.com',
|
|
564
|
+
* password: 'password123',
|
|
565
|
+
* authMode: 'cookie', // or 'jwt' (default)
|
|
566
|
+
* authType: 'mobile' // for session management
|
|
567
|
+
* });
|
|
560
568
|
* ```
|
|
561
569
|
*/
|
|
562
570
|
async login(credentials) {
|
|
@@ -565,7 +573,9 @@ var AuthModule = class {
|
|
|
565
573
|
{
|
|
566
574
|
email: credentials.email,
|
|
567
575
|
password: credentials.password,
|
|
568
|
-
tenant_Id: credentials.tenantId
|
|
576
|
+
tenant_Id: credentials.tenantId,
|
|
577
|
+
authMode: credentials.authMode,
|
|
578
|
+
authType: credentials.authType
|
|
569
579
|
},
|
|
570
580
|
{ skipAuth: true }
|
|
571
581
|
);
|