ErrorsSign-in and identity · rule
type.auth_sessions_context
Session, API token or service key operation outside an action, or without its sign-in method.
Area 8, Sign-in and identity; not declinable; the next step is usually the agent's.
principal { user: { subject: Member.handle }}authentication { browser_session: { cookie: "session" }}type Handle = Text { max_length: 40}entity Member { id: Uuid handle: Handle { unique: true }}test "signing out ends the session" { sessions.end()}
error A test can't call sessions.end
--> main.jadpo:25:5
|25 | sessions.end() | ^^^^^^^^^^^^ outside an action
- reason
sessions.endends the session of the request a route answers, so only an action calls it.- next
- Call
sessions.endin the action a sign-in or sign-out route runs (agent) - rule
- type.
auth_ sessions_ context - help
- https://jadpo.
dev/docs/errors/type. auth_ sessions_ context
Markdown for agents: /docs/errors/type.auth_sessions_context.md.Built from Jadpo main at aee2e8f.