Skip to content

Commit

Permalink
Add itp_support property to google-one-tap IdConfiguration (Definitel…
Browse files Browse the repository at this point in the history
…yTyped#61625)

* Add itp_support property to google-one-tap IdConfiguration

* Add tests for itp_support property
Rate limit · GitHub

Whoa there!

You have triggered an abuse detection mechanism.

Please wait a few minutes before you try again;
in some cases this may take up to an hour.

MateuszLeo authored Sep 13, 2022
1 parent bab7ac7 commit 1a8e1d8
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions types/google-one-tap/index.d.ts
Original file line number Diff line number Diff line change
@@ -60,6 +60,7 @@ export interface IdConfiguration {
ux_mode?: 'popup' | 'redirect';
allowed_parent_origin?: string | string[];
intermediate_iframe_close_callback?: (() => void);
itp_support?: boolean;

// Undocumented, but extraordinarily helpful: https://stackoverflow.com/a/72883451/229792
log_level?: 'debug' | 'info' | 'warn';
3 changes: 2 additions & 1 deletion types/google-one-tap/test/google-one-tap-global.test.ts
Original file line number Diff line number Diff line change
@@ -14,7 +14,8 @@ const idConfiguration: google.IdConfiguration = {
allowed_parent_origin: ['test1', 'test2'],
intermediate_iframe_close_callback: () => {},
ux_mode: 'popup',
log_level: 'debug'
log_level: 'debug',
itp_support: true
};

google.accounts.id.initialize(idConfiguration);

0 comments on commit 1a8e1d8

Please sign in to comment.