The OpenID userinfo endpoint response that this object was created with.
constructor(response)
Create an object that contains user information
Copy const response = await fetch ( /* arguments to fetch the OpenID userinfo endpoint */ )
. then ( data => data . json ())
const userInfo = new UserInfo ( response )
// ... or
const userInfo = user . info () circle-exclamation
This probably shouldn't get called directly, use User.info() instead.
Get an unique identifier about the user.
circle-exclamation
This function requires the openid scope.
Get an unique identifier about the user.
circle-exclamation
This function requires the openid scope.
Get the user's first name.
circle-exclamation
This function requires the profile scope.
Get the user's last name.
circle-exclamation
This function requires the profile scope.
Get the user's birth date.
circle-exclamation
This function requires the profile scope.
Get the user's unique national identifier (for example their SSN in the US).
circle-exclamation
This function requires the private scope.
Get the user's Vulos Identity trust level.
1 indicates that the user has done no KYC verification but has provided basic details.
2 indicates that the user has successfully KYC verification.
Anything other than that indicates that the user has done some action to reduce or increase their trust level that hasn't been specified in this document.
circle-exclamation
This function requires the public scope.
isEmailVerified()
Get the user's email verification status.
circle-exclamation
This function requires the email scope.
isKycVerified()
Get the user's KYC verification status.
circle-exclamation
This function requires the public scope.
Get the user's address.
circle-exclamation
This function requires the address scope.
Get the user's email address.
circle-exclamation
This function requires the email scope.
Check if the user has a specific role in the associated organization to the application.
isInOrganizationWithName(name)
Check if the user is in a specific organization by name.
isInOrganizationWithId(id)
Check if the user is in a specific organization by id.
Get the user's Ethereum wallet addresses.
circle-exclamation
This function requires the wallet scope.
Get the user's profile picture.
circle-exclamation
This function requires the profile scope.