> ## Documentation Index > Fetch the complete documentation index at: https://www.canva.dev/docs/apps/llms.txt > Use this file to discover all available pages before exploring further. # user.verifyToken API reference for the user.verifyToken method. NOTE: **This API is a preview**. Preview APIs are unstable and may change without warning. You can't release public apps using this API until it's stable. ## Usage ### Basic usage with default Authorization header: ```typescript import { user } from '@canva/app-middleware/express'; app.use(user.verifyToken({ appId: 'your-app-id' })); ``` ### With custom token extraction: ```typescript import { user, tokenExtractors } from '@canva/app-middleware/express'; app.use(user.verifyToken({ appId: 'your-app-id', tokenExtractor: tokenExtractors.fromQuery('token') })); ``` ## Parameters Configuration options Properties of options}> The ID of the Canva app, obtained via the developer portal canva.com/developers. The maximum age of the JWKS cache in minutes. **Default value**: `60` The timeout for the JWKS fetch in milliseconds. **Default value**: `30000` The base URL for the JWKS endpoint. **Default value**: `"https://api.canva.com"` A function that extracts a JWT token from the request. **Default value**: `tokenExtractors.fromBearerAuth()` **Parameters** **Returns** ## Returns Express middleware that verifies JWT tokens. `RequestHandler`