Skip to content

Commit ad2a868

Browse files
committed
feat: add showCompleteScreen
1 parent d9ae73d commit ad2a868

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

lib/main.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,17 @@ describe('mapLoginMethodParamsForUrl', () => {
3232
connectionId: 'conn123',
3333
redirectURL: 'https://example.com/',
3434
audience: 'audience123',
35+
showCompleteScreen: true,
3536
};
3637
const expectedOutput = {
3738
login_hint: 'user@example.com',
3839
is_create_org: 'true',
3940
connection_id: 'conn123',
4041
redirect_uri: 'https://example.com',
4142
audience: 'audience123',
42-
scope: "email profile openid offline"
43+
scope: "email profile openid offline",
44+
show_complete_screen: 'true',
45+
4346
};
4447
expect(mapLoginMethodParamsForUrl(options)).toEqual(expectedOutput);
4548
});

lib/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export const mapLoginMethodParamsForUrl = (
3434
lang: options.lang,
3535
org_code: options.orgCode,
3636
org_name: options.orgName,
37+
show_complete_screen: options.showCompleteScreen?.toString(),
3738
};
3839

3940
Object.keys(translate).forEach(

lib/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export type LoginMethodParams = Pick<
1717
| "orgName"
1818
| "connectionId"
1919
| "redirectURL"
20+
| "showCompleteScreen"
2021
>;
2122

2223
export type LoginOptions = {

0 commit comments

Comments
 (0)