Retrieving the logged-in user's context
API
interface User {
v1: {
identity(): UserIdentity
}
}
interface UserIdentity {
userId(): string,
roles(): string[],
firstName(): string,
lastName(): string,
type(): 'client'|'employee'|'otp',
system(): string
}Execution context
Usage examples
Retrieving user data
Last updated
Was this helpful?
