From 35f3b559ee98fcd76ad4fcd75c1d233fe6c3c22e Mon Sep 17 00:00:00 2001 From: Dobes Vandermeer Date: Tue, 29 Jan 2019 12:40:15 -0800 Subject: [PATCH] gapi.auth2: Add ux_mode and redirect_uri to SigninOptions See https://developers.google.com/api-client-library/javascript/reference/referencedocs#gapiauth2signinoptions --- types/gapi.auth2/index.d.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/types/gapi.auth2/index.d.ts b/types/gapi.auth2/index.d.ts index bd40ce9650..6db3755cc7 100644 --- a/types/gapi.auth2/index.d.ts +++ b/types/gapi.auth2/index.d.ts @@ -101,6 +101,16 @@ declare namespace gapi.auth2 { * Optional if fetch_basic_profile is not set to false. */ scope?: string; + /** + * The UX mode to use for the sign-in flow. + * By default, it will open the consent flow in a popup. + */ + ux_mode?: "popup" | "redirect"; + /** + * If using ux_mode='redirect', this parameter allows you to override the default redirect_uri that will be used at the end of the consent flow. + * The default redirect_uri is the current URL stripped of query parameters and hash fragment. + */ + redirect_uri?: string; } /**