excalibur_check_oauth_status
Check whether the OAuth2 authorization flow has completed.
Call after opening the authorization URL from begin_oauth
and completing the login in your browser. Free. Proof of npub
ownership is required: OAuth status exposes which upstream
services a patron has connected.
A 'pending' result here does NOT prove an existing session has
lapsed — it only reports this authorization attempt. To find out
whether a session still works, attempt the live call; fall back
to begin_oauth only on an explicit
upstream_auth_refresh_needed error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| npub | Yes | The same Nostr public key (npub1...) used in begin_oauth. | |
| dpop_token | Yes | Raw JSON of a kind-27235 Nostr event signed by npub — not base64, not NIP-98 'Authorization: Nostr <b64>' framing. Its `u` tag must hold THIS tool's exact name (from tools/list), not the endpoint URL; content:"", created_at within 60s of now, and a random `nonce` tag recommended. Or a cached dpop_token phrase. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||