val allowed = StytchB2B.rbac.isAuthorizedSync( resourceId = "documents", action = "read",)
RBAC
Is Authorized Sync
Checks whether the logged-in member is authorized to perform [action] on [resourceId] using the locally cached RBAC policy. No network request is made; returns false if no policy is cached yet.
val allowed = StytchB2B.rbac.isAuthorizedSync( resourceId = "documents", action = "read",)
Returns
true if the member is authorized; false otherwise or if no policy is cached.
val allowed = StytchB2B.rbac.isAuthorizedSync( resourceId = "documents", action = "read",)
Assistant
Responses are generated using AI and may contain mistakes.