PermissionClient
interfaceReads what the user has granted, denied, and is being asked right now. This is an observation surface. Nothing here grants or revokes anything. Read it to show the current state in your own UI.
Import
import { PermissionClient } from '@modular/sdk';Members3
- snapshot
ReadonlySignal<PermissionSnapshotDto>The live snapshot, for code that reacts to changes.
- getSnapshot
() => PermissionSnapshotDtoThe snapshot right now, for one off reads.
- subscribe
(listener: () => void) => DisposableRuns `listener` whenever any grant or pending request changes.
Notes
- category
- Context