service/domain/organization/auth_token
Api Code Documentation / Exports / service/domain/organization/auth_token
Table of contents
Interfaces
Functions
Functions
canAssumeIdentity
▸ canAssumeIdentity(user
, identity
): boolean
Parameters
Name | Type |
---|---|
user | Object |
user.groups | string [] |
user.id | string |
identity | string |
Returns
boolean
Defined in
src/service/domain/organization/auth_token.ts:25
fromUserRecord
▸ fromUserRecord(user
, repository
, metadata?
): Promise
<Type
<AuthToken
>>
Parameters
Name | Type |
---|---|
user | UserRecord |
repository | Repository |
metadata? | UserMetadata |
Returns
Defined in
src/service/domain/organization/auth_token.ts:40
permits
▸ permits(permissions
, actingUser
, intents
): boolean
Parameters
Name | Type |
---|---|
permissions | Permissions |
actingUser | ServiceUser |
intents | default [] |
Returns
boolean