User
Last updated
Last updated
UserTokens
api :
The BaseAuth
implementation that was used to create this object.
accessToken : string?
This user's OpenID access token.
refreshToken : string?
This user's OpenID refresh token.
idToken : string?
This user's OpenID identification token.
tokenType : string?
The type of the access token.
expiresAt : number?
The time when the access token expires.
The OrganizationApi
object that is associated with this user.
The ProfileApi
object that is associated with this user.
constructor(api,tokens)
Create a user object that interacts with the Vulos Identity API on behalf of a user.
save()
The tokens might update on any API call, so make sure you call this if you want to preserve the tokens.
async reference()
async info()
async getOrganizationMemberships()
async createOrganization(details)
async organizationSearch(search, amount, offset)
The only difference is that this function doesn't throw, but returns false
on failure.
async getAccessToken()
Get the access token of the user.
The api
argument should be a implementation;
The tokens
argument should be a token set that implements the interface.
See for more information.
Save the token set user to a serializable object that implements the interface.
Create a object that is associated with this user.
Get the object for this user.
Get all the objects for this user's organizations.
Create a new organization with a details
object that implements the interface.
This function is an alias to .