allPermissions

abstract suspend fun allPermissions(): Map<String, Map<String, Boolean>>

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()

iOS:

let permissions = try await StytchB2B.rbac.allPermissions()

React Native:

const permissions = await StytchB2B.rbac.allPermissions()

Return

A map of resourceId to Map<action, Boolean> representing all permissions.

Throws

if the coroutine is cancelled.