@eml-payments/core-sdk 1.1.2 → 1.1.4
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/core-sdk.d.ts +1 -1
- package/dist/core-sdk.js +7 -2
- package/package.json +2 -2
package/dist/core-sdk.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export declare class CoreSDK {
|
|
|
17
17
|
* Redirect to login endpoint
|
|
18
18
|
* The BFF will handle the OAuth flow
|
|
19
19
|
*/
|
|
20
|
-
login(): void;
|
|
20
|
+
login(email?: string): void;
|
|
21
21
|
/**
|
|
22
22
|
* Logout the current user
|
|
23
23
|
* Calls the BFF logout endpoint and optionally redirects to Azure AD logout
|
package/dist/core-sdk.js
CHANGED
|
@@ -27,8 +27,13 @@ export class CoreSDK {
|
|
|
27
27
|
* Redirect to login endpoint
|
|
28
28
|
* The BFF will handle the OAuth flow
|
|
29
29
|
*/
|
|
30
|
-
login() {
|
|
31
|
-
|
|
30
|
+
login(email) {
|
|
31
|
+
if (email) {
|
|
32
|
+
globalThis.location.href = `${this.baseUrl}/api/auth/login?email=${encodeURIComponent(email)}`;
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
globalThis.location.href = `${this.baseUrl}/api/auth/login`;
|
|
36
|
+
}
|
|
32
37
|
}
|
|
33
38
|
/**
|
|
34
39
|
* Logout the current user
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eml-payments/core-sdk",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"build": "tsc -p ."
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"axios": "^1.13.
|
|
21
|
+
"axios": "^1.13.5"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"typescript": "^5.0.0"
|