@base44/sdk 0.2.1 → 0.3.0
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/client.d.ts +1 -0
- package/dist/modules/auth.d.ts +5 -0
- package/dist/modules/auth.js +7 -0
- package/package.json +1 -1
package/dist/client.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export declare function createClient(config: {
|
|
|
19
19
|
integrations: {};
|
|
20
20
|
auth: {
|
|
21
21
|
me(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
22
|
+
getSsoAccessToken(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
22
23
|
updateMe(data: Record<string, any>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
23
24
|
redirectToLogin(nextUrl: string): void;
|
|
24
25
|
logout(redirectUrl?: string): void;
|
package/dist/modules/auth.d.ts
CHANGED
|
@@ -12,6 +12,11 @@ export declare function createAuthModule(axios: AxiosInstance, appId: string, se
|
|
|
12
12
|
* @returns {Promise<Object>} Current user data
|
|
13
13
|
*/
|
|
14
14
|
me(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
15
|
+
/**
|
|
16
|
+
* Get current user sso access token
|
|
17
|
+
* @returns {Promise<Object>} Current user sso access_token
|
|
18
|
+
*/
|
|
19
|
+
getSsoAccessToken(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
15
20
|
/**
|
|
16
21
|
* Update current user data
|
|
17
22
|
* @param {Object} data - Updated user data
|
package/dist/modules/auth.js
CHANGED
|
@@ -14,6 +14,13 @@ export function createAuthModule(axios, appId, serverUrl) {
|
|
|
14
14
|
async me() {
|
|
15
15
|
return axios.get(`/apps/${appId}/entities/User/me`);
|
|
16
16
|
},
|
|
17
|
+
/**
|
|
18
|
+
* Get current user sso access token
|
|
19
|
+
* @returns {Promise<Object>} Current user sso access_token
|
|
20
|
+
*/
|
|
21
|
+
async getSsoAccessToken() {
|
|
22
|
+
return axios.get(`/apps/${appId}/auth/sso/accesstoken`);
|
|
23
|
+
},
|
|
17
24
|
/**
|
|
18
25
|
* Update current user data
|
|
19
26
|
* @param {Object} data - Updated user data
|