Hi! Anyone knows what google scopes need to be ena...
# talk-kratos
j
Hi! Anyone knows what google scopes need to be enabled for the
phone
to appear in the identity? I tried
user.phonenumbers.read
(
./auth/userinfo.email
,
./auth/userinfo.profile
,
openid
are already enabled and work fine).
oidc.google.jsonnet
looks like this:
Copy code
local claims = {
  email_verified: false
} + std.extVar('claims');

{
  identity: {
    traits: {
      [if "email" in claims && claims.email_verified then "email" else null]: claims.email,
      // additional claims
      // please also see the `Google specific claims` 
      name:{
        first: claims.given_name,
        last: claims.family_name,
      },
      [if "phone_number" in claims && claims.phone_number_verified then "phone" else null]: claims.phone_number,

    },
  },
}