← all modules
Std.Live.Console
Std.Live.Console
Std.Live.Console — types exposed for the optional `consoleAuth`
Types
type alias Identity
Values
defaultIdentity : String -> Identity
`defaultIdentity "user-42"` — Identity with empty email + claims.
withClaim : String -> String -> Identity -> Identity
`withClaim "role" "admin" id` — add a single RBAC claim.
withClaims : Dict String String -> Identity -> Identity
`withClaims (Dict.fromList [("role", "admin"), ("tier", "pro")]) id`
withEmail : String -> Identity -> Identity
`withEmail "alice@example.com" id` — replace the audit email.