Skip to content

User

SDK exports types for working with the current user:

ts
import type {
  UserRole
} from '@aspro-cloud/miniapp-jssdk'

Types

UserRole

User role identifier in the installed mini‑application, used in the User.hasRole() method

ts
type UserRole = string
ValueDescription
'admin'Administrator
'employee'Employee
'none'No access to the application

Published under the MIT license.