create_login_secret
Make the secret a site signs with to say which of its users is logged in (HS256, the user's id as sub, an expiry). plaintext is the secret, shown this once: put it in the site's server configuration, never in a page. If one exists it is replaced, and the old one keeps working for 24 hours unless stop_old_now. Owner only.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"product_id": "<product_id>"
},
"name": "create_login_secret"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | "test" (the default) or "live": which of the site's keys the secret goes with. | |
| product_id | Yes | The site's id (a uuid), from list_products. | |
| stop_old_now | No | true only if someone else may have the old secret: it stops working at once and everyone is logged out of the form. Otherwise the old one keeps working for 24 hours. |