Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

setup login page

this.auth2 = window.gapi.auth2
.init({
client_id: process.env.GOOGLE_ID,
ux_mode: 'redirect',
redirect_uri: process.env.GOOGLE_LOGIN_REDIRECT, // https://domain/callback
scope: 'profile email',
prompt: 'select_account',
})
.then(() => {
let googleAuth = window.gapi.auth2.getAuthInstance();
googleAuth.signIn()
});

in callback page window.gapi.auth2.getAuthInstance().currentUser.get().getAuthResponse() is empty only in IOS 14.2 but another version is work and android is work also.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
222 views
Welcome To Ask or Share your Answers For Others

1 Answer

When ux_mode was 'redirect', it did not work unless ITP was disabled. https://www.simoahava.com/privacy/intelligent-tracking-prevention-ios-14-ipados-14-safari-14/


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...