verify_magic_link
Verify a magic link token to exchange for access and refresh tokens, creating the user if they don't exist. Token is single-use and expires in 15 minutes.
Instructions
Exchange a magic link token for access_token + refresh_token. Creates the user if they don't exist. Token is single-use and expires in 15 minutes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Six-digit email code. Required with challenge_id. | |
| token | No | Magic-link token. Mutually exclusive with challenge_id/code. | |
| project_id | Yes | The project ID | |
| challenge_id | No | Opaque email-code challenge handle. Required with code. |