Store Code
store_codeStore a sealed OAuth2 authorization code.
Called by the serverless callback function after the browser redirect. The
state carries the patron npub, the operator npub (the PUBLIC key the
code is sealed to) and the flow's one-time secret — see the SDK's
pack_oauth_state. The code is sealed with NIP-44 to the operator so only
that operator's nsec can open it. The Neon row is keyed by
oauth_code_key(state) (patron npub + secret), so only the flow that
holds the secret finds it: a link someone else built with a patron's npub
files its code where that patron's flow never looks.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The authorization code from the OAuth provider. | |
| state | Yes | The packed state (``patron_npub.operator_npub.secret``). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||