@base44-preview/sdk 0.8.39-pr.234.de0df52 → 0.8.39-pr.236.cab496b

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.
@@ -5,6 +5,7 @@ import { SsoModule } from "./sso.types";
5
5
  *
6
6
  * @param axios - Axios instance
7
7
  * @param appId - Application ID
8
+ * @param userToken - User authentication token
8
9
  * @returns SSO module with authentication methods
9
10
  * @internal
10
11
  */
@@ -3,6 +3,7 @@
3
3
  *
4
4
  * @param axios - Axios instance
5
5
  * @param appId - Application ID
6
+ * @param userToken - User authentication token
6
7
  * @returns SSO module with authentication methods
7
8
  * @internal
8
9
  */
@@ -13,13 +14,5 @@ export function createSsoModule(axios, appId) {
13
14
  const url = `/apps/${appId}/auth/sso/accesstoken/${userid}`;
14
15
  return axios.get(url);
15
16
  },
16
- // Get the stored SSO OIDC ID token for a specific user
17
- async getIdToken(userid) {
18
- const url = `/apps/${appId}/auth/sso/idtoken/${userid}`;
19
- const response = await axios.get(url);
20
- // The configured response interceptor unwraps response.data at runtime,
21
- // while AxiosInstance retains AxiosResponse typings.
22
- return response;
23
- },
24
17
  };
25
18
  }
@@ -8,9 +8,9 @@ export interface SsoAccessTokenResponse {
8
8
  /**
9
9
  * SSO (Single Sign-On) module for managing SSO authentication.
10
10
  *
11
- * This module provides methods for retrieving SSO tokens for users. These
12
- * tokens allow you to authenticate Base44 users with external systems or
13
- * services.
11
+ * This module provides methods for retrieving SSO access tokens for users.
12
+ * These tokens allow you to authenticate Base44 users with external
13
+ * systems or services.
14
14
  *
15
15
  * This module is only available to use with a client in service role authentication mode, which means it can only be used in backend environments.
16
16
  *
@@ -41,28 +41,4 @@ export interface SsoModule {
41
41
  * ```
42
42
  */
43
43
  getAccessToken(userid: string): Promise<SsoAccessTokenResponse>;
44
- /**
45
- * Gets the stored SSO OIDC ID token for the current app user.
46
- *
47
- * The service-role client must include an on-behalf-of token for the same
48
- * user specified by `userid`. This method returns the stored token as-is and
49
- * does not refresh it.
50
- *
51
- * @param userid - The current app user's ID.
52
- * @returns Promise resolving to the raw ID-token string.
53
- *
54
- * @example
55
- * ```typescript
56
- * import { createClientFromRequest } from 'npm:@base44/sdk';
57
- *
58
- * Deno.serve(async (req) => {
59
- * const base44 = createClientFromRequest(req);
60
- * const user = await base44.auth.me();
61
- * const idToken = await base44.asServiceRole.sso.getIdToken(user.id);
62
- *
63
- * return Response.json({ idToken });
64
- * });
65
- * ```
66
- */
67
- getIdToken(userid: string): Promise<string>;
68
44
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base44-preview/sdk",
3
- "version": "0.8.39-pr.234.de0df52",
3
+ "version": "0.8.39-pr.236.cab496b",
4
4
  "description": "JavaScript SDK for Base44 API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",