Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -37,9 +37,11 @@ export async function signInWithGoogle(webClientId: string): Promise<string> {
|
|||||||
await SocialLogin.initialize({ google })
|
await SocialLogin.initialize({ google })
|
||||||
initializedFor = webClientId
|
initializedFor = webClientId
|
||||||
}
|
}
|
||||||
|
// scopes 를 넘기면 플러그인이 MainActivity 수정을 요구한다.
|
||||||
|
// 기본 로그인(Credential Manager)은 email·profile 이 ID 토큰에 포함되므로 scopes 불필요.
|
||||||
const res = await SocialLogin.login({
|
const res = await SocialLogin.login({
|
||||||
provider: 'google',
|
provider: 'google',
|
||||||
options: { scopes: ['email', 'profile'] },
|
options: {},
|
||||||
})
|
})
|
||||||
const result = res.result as { idToken?: string | null }
|
const result = res.result as { idToken?: string | null }
|
||||||
if (!result?.idToken) {
|
if (!result?.idToken) {
|
||||||
|
|||||||
Reference in New Issue
Block a user