Skip to content

Commit bdaa4ff

Browse files
authored
add widgets:sso:manage scope (#1337)
## Description Adds the `widgets:sso:manage` scope. Also makes `userId` optional (We anticipate customer's using this widget without a corresponding AuthKit user). ## Documentation Does this require changes to the WorkOS Docs? E.g. the [API Reference](https://workos.com/docs/reference) or code snippets need updates. ``` [X] Yes ``` If yes, link a related docs PR and add a docs maintainer as a reviewer. Their approval is required.
1 parent 159a487 commit bdaa4ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/widgets/interfaces/get-token.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
export type WidgetScope = 'widgets:users-table:manage';
1+
export type WidgetScope = 'widgets:users-table:manage' | 'widgets:sso:manage';
22

33
export interface GetTokenOptions {
44
organizationId: string;
5-
userId: string;
5+
userId?: string;
66
scopes?: [WidgetScope];
77
}
88

99
export interface SerializedGetTokenOptions {
1010
organization_id: string;
11-
user_id: string;
11+
user_id?: string;
1212
scopes?: [WidgetScope];
1313
}
1414

0 commit comments

Comments
 (0)