@base44-preview/sdk 0.8.39-pr.234.1f9d97c → 0.8.39-pr.234.288f036
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.
|
@@ -114,7 +114,6 @@ export interface AppUserConnectorConnectionResponse {
|
|
|
114
114
|
* | Slack Bot | `slackbot` |
|
|
115
115
|
* | Snowflake | `snowflake` |
|
|
116
116
|
* | Splitwise | `splitwise` |
|
|
117
|
-
* | Square | `square` |
|
|
118
117
|
* | Supabase | `supabase` |
|
|
119
118
|
* | TikTok | `tiktok` |
|
|
120
119
|
* | Typeform | `typeform` |
|
|
@@ -18,9 +18,15 @@ export interface SsoAccessTokenResponse {
|
|
|
18
18
|
*
|
|
19
19
|
* @example
|
|
20
20
|
* ```typescript
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
21
|
+
* import { createClientFromRequest } from 'npm:@base44/sdk';
|
|
22
|
+
*
|
|
23
|
+
* Deno.serve(async (req) => {
|
|
24
|
+
* const base44 = createClientFromRequest(req);
|
|
25
|
+
* const user = await base44.auth.me();
|
|
26
|
+
* const idToken = await base44.asServiceRole.sso.getIdToken(user.id);
|
|
27
|
+
*
|
|
28
|
+
* return Response.json({ idToken });
|
|
29
|
+
* });
|
|
24
30
|
* ```
|
|
25
31
|
*/
|
|
26
32
|
export interface SsoModule {
|
|
@@ -50,19 +56,6 @@ export interface SsoModule {
|
|
|
50
56
|
*
|
|
51
57
|
* @param userid - The current app user's ID.
|
|
52
58
|
* @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
59
|
*/
|
|
67
60
|
getIdToken(userid: string): Promise<string>;
|
|
68
61
|
}
|