auth_refresh
Refresh authentication tokens for the Evaluar recruitment platform to maintain continuous access when tokens approach expiration.
Instructions
Refresh the authentication token. Use this when the current token is about to expire.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/auth.ts:49-63 (handler)The handler function that executes the logic for refreshing the authentication token.
export async function handleAuthRefresh(): Promise<string> { try { const tokenData = await refreshToken(); return JSON.stringify({ success: true, message: "Token refreshed successfully", expiresIn: tokenData.expires_in, }); } catch (error) { return JSON.stringify({ success: false, error: error instanceof Error ? error.message : "Unknown error", }); } } - src/tools/auth.ts:39-47 (schema)The tool definition schema for "auth_refresh".
export const authRefreshTool = { name: "auth_refresh", description: "Refresh the authentication token. Use this when the current token is about to expire.", inputSchema: { type: "object" as const, properties: {}, required: [], }, }; - src/index.ts:53-54 (registration)The registration and dispatching logic in the main index file for the "auth_refresh" tool.
case "auth_refresh": result = await handleAuthRefresh();