Authorization scope loaded from PermitEx role assignments.
Use this struct directly or merge its roles and permissions into your
application's own Phoenix scope.
Summary
Functions
Builds a %PermitEx.Scope{} for the user and optional context.
Merges PermitEx authorization data into an existing map or struct.
Types
@type t() :: %PermitEx.Scope{ assigns: map(), context_id: Ecto.UUID.t() | nil, permissions: MapSet.t(String.t()), roles: [PermitEx.Role.t()], user_id: Ecto.UUID.t() | nil }