auth
Manage Microsoft Graph API authentication: check status, refresh tokens, or initiate OAuth flow using device code or browser redirect.
Instructions
Manage authentication with Microsoft Graph API. action=status (default) checks auth state and refreshes tokens if needed, action=authenticate starts OAuth flow (device-code by default — no auth server needed), action=device-code-complete finishes device code auth after user enters code, action=about shows server info.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | Action to perform (default: status) | |
| method | No | Auth method for action=authenticate. device-code (default): no auth server needed, works remotely. browser: traditional OAuth redirect via port 3333. | |
| force | No | Force re-authentication even if already authenticated (action=authenticate only) |