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| Value | Description |
|---|---|
'admin' | Administrator |
'employee' | Employee |
'none' | No access to the application |