Skip to content

docs: document how to access module owner via init reducer#4315

Open
clockwork-labs-bot wants to merge 1 commit intomasterfrom
docs/module-owner-init
Open

docs: document how to access module owner via init reducer#4315
clockwork-labs-bot wants to merge 1 commit intomasterfrom
docs/module-owner-init

Conversation

@clockwork-labs-bot
Copy link
Collaborator

In the init reducer, ctx.sender is the module owner — the identity of the user who published the database. This is the only lifecycle reducer where the owner identity is automatically provided.

Added a tip to the lifecycle docs showing:

  • That ctx.sender in init is the owner
  • How to store it in a table for later authorization checks
  • Examples in TypeScript, C#, and Rust

Closes #3229

In the init reducer, ctx.sender is the identity of the user who published
the database (the module owner). Document this behavior and show how to
store the owner identity for later use in authorization checks.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs - How to access module owner

1 participant