Skip to content

[DOCS] integration-guide.md requestSessionKey example doesn't match the real SessionKeyPolicy type #1274

Description

@wheval

Summary

The requestSessionKey example in the Quick Start guide uses field names that don't exist on the real SessionKeyPolicy type.

Evidence

Doc example passes { allowlist, methods, maxAmount, durationSeconds }. Real type (packages/types/src/session-key-policy.ts) is { expiresAt: number, permissions: number, allowedContracts?: string[], maxAmountPerCall?: string } — none of the field names match, and durationSeconds doesn't exist at all (needs an absolute expiresAt timestamp instead).

Why it matters

Same Quick Start flow; this example would fail type-checking or silently no-op every field if copy-pasted as JS.

Suggested fix

Rewrite the code block to use the real field names from SessionKeyPolicy.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationeasy

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions