@base44-preview/sdk 0.5.0-pr.21.2b7656a → 0.5.0-pr.22.d593016

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 CHANGED
@@ -40,7 +40,7 @@ export declare function createClient(config: {
40
40
  integrations: {};
41
41
  auth: {
42
42
  me(): Promise<import("axios").AxiosResponse<any, any>>;
43
- getSsoAccessToken(userid?: string): Promise<import("axios").AxiosResponse<any, any>>;
43
+ getSsoAccessToken(userid: string): Promise<import("axios").AxiosResponse<any, any>>;
44
44
  updateMe(data: Record<string, any>): Promise<import("axios").AxiosResponse<any, any>>;
45
45
  redirectToLogin(nextUrl: string): void;
46
46
  logout(redirectUrl?: string): void;
@@ -81,7 +81,7 @@ export declare function createClientFromRequest(request: Request): {
81
81
  integrations: {};
82
82
  auth: {
83
83
  me(): Promise<import("axios").AxiosResponse<any, any>>;
84
- getSsoAccessToken(userid?: string): Promise<import("axios").AxiosResponse<any, any>>;
84
+ getSsoAccessToken(userid: string): Promise<import("axios").AxiosResponse<any, any>>;
85
85
  updateMe(data: Record<string, any>): Promise<import("axios").AxiosResponse<any, any>>;
86
86
  redirectToLogin(nextUrl: string): void;
87
87
  logout(redirectUrl?: string): void;
@@ -14,10 +14,10 @@ export declare function createAuthModule(axios: AxiosInstance, functionsAxiosCli
14
14
  me(): Promise<import("axios").AxiosResponse<any, any>>;
15
15
  /**
16
16
  * Get current user sso access token
17
- * @param {string} [userid] - Optional user ID to include as URL parameter
17
+ * @param {string} userid - User ID to include as path parameter
18
18
  * @returns {Promise<Object>} Current user sso access_token
19
19
  */
20
- getSsoAccessToken(userid?: string): Promise<import("axios").AxiosResponse<any, any>>;
20
+ getSsoAccessToken(userid: string): Promise<import("axios").AxiosResponse<any, any>>;
21
21
  /**
22
22
  * Update current user data
23
23
  * @param {Object} data - Updated user data
@@ -16,13 +16,12 @@ export function createAuthModule(axios, functionsAxiosClient, appId) {
16
16
  },
17
17
  /**
18
18
  * Get current user sso access token
19
- * @param {string} [userid] - Optional user ID to include as URL parameter
19
+ * @param {string} userid - User ID to include as path parameter
20
20
  * @returns {Promise<Object>} Current user sso access_token
21
21
  */
22
22
  async getSsoAccessToken(userid) {
23
- const url = `/apps/${appId}/auth/sso/accesstoken`;
24
- const params = userid ? { userid } : {};
25
- return axios.get(url, { params });
23
+ const url = `/apps/${appId}/auth/sso/accesstoken/${userid}`;
24
+ return axios.get(url);
26
25
  },
27
26
  /**
28
27
  * Update current user data
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base44-preview/sdk",
3
- "version": "0.5.0-pr.21.2b7656a",
3
+ "version": "0.5.0-pr.22.d593016",
4
4
  "description": "JavaScript SDK for Base44 API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",