allPermissions
Refreshes the RBAC policy from the server, then returns a map of all permissions for the logged-in member in the form Map<resourceId, Map<action, Boolean>>.
Kotlin:
val permissions = StytchB2B.rbac.allPermissions()Content copied to clipboard
iOS:
let permissions = try await StytchB2B.rbac.allPermissions()Content copied to clipboard
React Native:
const permissions = await StytchB2B.rbac.allPermissions()Content copied to clipboard
Return
A map of resourceId to Map<action, Boolean> representing all permissions.
Throws
if the coroutine is cancelled.