Generate Access Token
generate_access_tokenGenerate a personal access token for AFFiNE authentication. Returns a one-time secret that must be stored securely.
Instructions
Generate a new personal access token and return its one-time secret. This creates a credential; store the returned token securely because it may not be shown again.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Human-readable token name shown in AFFiNE token settings. | |
| expiresAt | No | Optional expiration timestamp accepted by AFFiNE, typically an ISO 8601 string. |