Skip to content

Commit a221189

Browse files
authored
Fix GetTokenOptions[scopes] type (#1348)
## Description This was accidentally typed as a single-item tuple, so passing multiple scopes currently results in a type error. ## Documentation Does this require changes to the WorkOS Docs? E.g. the [API Reference](https://workos.com/docs/reference) or code snippets need updates. ``` [ ] Yes ``` If yes, link a related docs PR and add a docs maintainer as a reviewer. Their approval is required.
1 parent 9c70a4c commit a221189

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/widgets/interfaces/get-token.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ export type WidgetScope =
66
export interface GetTokenOptions {
77
organizationId: string;
88
userId?: string;
9-
scopes?: [WidgetScope];
9+
scopes?: WidgetScope[];
1010
}
1111

1212
export interface SerializedGetTokenOptions {
1313
organization_id: string;
1414
user_id?: string;
15-
scopes?: [WidgetScope];
15+
scopes?: WidgetScope[];
1616
}
1717

1818
export const serializeGetTokenOptions = (

0 commit comments

Comments
 (0)