UserInfo
Members
response : any
response : any
The OpenID userinfo endpoint response that this object was created with.
Methods
constructor(response)
constructor(response)
Create an object that contains user information
This probably shouldn't get called directly, use User.info()
instead.
See User
for more information.
See BaseAuth
for more information.
id()
id()
Get an unique identifier about the user.
This is the same as sub()
, it exists for readability.
This function requires the openid
scope.
sub()
sub()
Get an unique identifier about the user.
This is the same as id()
, it exists for readability.
This function requires the openid
scope.
firstName()
firstName()
Get the user's first name.
This function requires the profile
scope.
lastName()
lastName()
Get the user's last name.
This function requires the profile
scope.
birthDate()
birthDate()
Get the user's birth date.
This function requires the profile
scope.
nationalId()
nationalId()
Get the user's unique national identifier (for example their SSN in the US).
This function requires the private
scope.
trustLevel()
trustLevel()
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.
This function requires the public
scope.
isEmailVerified()
isEmailVerified()
Get the user's email verification status.
This function requires the email
scope.
isKycVerified()
isKycVerified()
Get the user's KYC verification status.
This function requires the public
scope.
address()
address()
Get the user's address.
This function requires the address
scope.
email()
email()
Get the user's email address.
This function requires the email
scope.
hasRole(role)
hasRole(role)
Check if the user has a specific role in the associated organization to the application.
This function requires the organization:roles
scope.
isInOrganizationWithName(name)
isInOrganizationWithName(name)
Check if the user is in a specific organization by name.
This function requires the organization:read
scope.
It is recommended to use isInOrganizationWithId()
instead.
isInOrganizationWithId(id)
isInOrganizationWithId(id)
Check if the user is in a specific organization by id.
You can obtain the organization ID using the Organization API or by checking the URL of the organization's page on the Vulos Identity dashboard.
This function requires the organization:read
scope.
wallets()
wallets()
Get the user's Ethereum wallet addresses.
This function requires the wallet
scope.
picture()
picture()
Get the user's profile picture.
This function requires the profile
scope.
Last updated