UserInfo
@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.
Properties
address?
optionaladdress:object
country?
optionalcountry:string
formatted?
optionalformatted:string
locality?
optionallocality:string
postalCode?
optionalpostalCode:string
region?
optionalregion:string
streetAddress?
optionalstreetAddress:string
authenticators?
optionalauthenticators:Authenticator[]
birthdate?
optionalbirthdate:string
canReauthenticate
canReauthenticate:
boolean
customAttributes
customAttributes:
Record<string,unknown>
email?
optionalemail:string
emailVerified?
optionalemailVerified:boolean
familyName?
optionalfamilyName:string
gender?
optionalgender:string
givenName?
optionalgivenName:string
identities?
optionalidentities:Identity[]
isAnonymous
isAnonymous:
boolean
isVerified
isVerified:
boolean
locale?
optionallocale:string
middleName?
optionalmiddleName:string
name?
optionalname:string
nickname?
optionalnickname:string
phoneNumber?
optionalphoneNumber:string
phoneNumberVerified?
optionalphoneNumberVerified:boolean
picture?
optionalpicture:string
preferredUsername?
optionalpreferredUsername:string
profile?
optionalprofile:string
raw
raw:
Record<string,unknown>
recoveryCodeEnabled?
optionalrecoveryCodeEnabled:boolean
roles?
optionalroles:string[]
sub
sub:
string
website?
optionalwebsite:string
zoneinfo?
optionalzoneinfo:string