@authgear/capacitor / UserInfo
Interface: UserInfo
UserInfo is the result of fetchUserInfo.
It contains sub
which is the User ID,
as well as OIDC standard claims like email
,
see https://openid.net/specs/openid-connect-core-1_0.html#StandardClaims.
In addition to these standard claims, it may include custom claims
defined by Authgear to support additional functionality like isVerified
.
Table of contents
Properties
- address
- birthdate
- canReauthenticate
- customAttributes
- emailVerified
- familyName
- gender
- givenName
- isAnonymous
- isVerified
- locale
- middleName
- name
- nickname
- phoneNumber
- phoneNumberVerified
- picture
- preferredUsername
- profile
- raw
- roles
- sub
- website
- zoneinfo
Properties
address
• Optional
address: Object
Type declaration
Name | Type |
---|---|
country? | string |
formatted? | string |
locality? | string |
postalCode? | string |
region? | string |
streetAddress? | string |
Defined in
packages/authgear-capacitor/index.d.ts:369
birthdate
• Optional
birthdate: string
Defined in
packages/authgear-capacitor/index.d.ts:366
canReauthenticate
• canReauthenticate: boolean
Defined in
packages/authgear-capacitor/index.d.ts:348
customAttributes
• customAttributes: Record
<string
, unknown
>
Defined in
packages/authgear-capacitor/index.d.ts:351
email
• Optional
email: string
Defined in
packages/authgear-capacitor/index.d.ts:352
emailVerified
• Optional
emailVerified: boolean
Defined in
packages/authgear-capacitor/index.d.ts:353
familyName
• Optional
familyName: string
Defined in
packages/authgear-capacitor/index.d.ts:357
gender
• Optional
gender: string
Defined in
packages/authgear-capacitor/index.d.ts:365
givenName
• Optional
givenName: string
Defined in
packages/authgear-capacitor/index.d.ts:358
isAnonymous
• isAnonymous: boolean
Defined in
packages/authgear-capacitor/index.d.ts:347
isVerified
• isVerified: boolean
Defined in
packages/authgear-capacitor/index.d.ts:346
locale
• Optional
locale: string
Defined in
packages/authgear-capacitor/index.d.ts:368
middleName
• Optional
middleName: string
Defined in
packages/authgear-capacitor/index.d.ts:359
name
• Optional
name: string
Defined in
packages/authgear-capacitor/index.d.ts:360
nickname
• Optional
nickname: string
Defined in
packages/authgear-capacitor/index.d.ts:361
phoneNumber
• Optional
phoneNumber: string
Defined in
packages/authgear-capacitor/index.d.ts:354
phoneNumberVerified
• Optional
phoneNumberVerified: boolean
Defined in
packages/authgear-capacitor/index.d.ts:355
picture
• Optional
picture: string
Defined in
packages/authgear-capacitor/index.d.ts:362
preferredUsername
• Optional
preferredUsername: string
Defined in
packages/authgear-capacitor/index.d.ts:356
profile
• Optional
profile: string
Defined in
packages/authgear-capacitor/index.d.ts:363
raw
• raw: Record
<string
, unknown
>
Defined in
packages/authgear-capacitor/index.d.ts:350
roles
• Optional
roles: string
[]
Defined in
packages/authgear-capacitor/index.d.ts:349
sub
• sub: string
Defined in
packages/authgear-capacitor/index.d.ts:345
website
• Optional
website: string
Defined in
packages/authgear-capacitor/index.d.ts:364
zoneinfo
• Optional
zoneinfo: string
Defined in
packages/authgear-capacitor/index.d.ts:367