> This page is for Designer API.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developers.webflow.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developers.webflow.com/_mcp/server.

# Get user ID token

## `webflow.getIdToken()`

Retrieves a [JSON Web Token (JWT)](https://jwt.io) that uniquely identifies the current user of your Designer Extension. This ID token contains encoded user information that can be used for authentication and authorization purposes.

#### [Authenticating users with the Data API](/apps/docs/authenticating-users-with-id-tokens)

To decode and verify the token, send a POST request to the [Resolve ID Token endpoint](/data/v2.0.0-beta/reference/token/resolve). The endpoint will return the user's details, which you can use to implement permission-based features or personalized experiences in your extension.

\


[Read the guide](/apps/docs/authenticating-users-with-id-tokens)

### Syntax

```typescript
webflow.getIdToken(): Promise<string>;
```

### Returns

**Promise\<*String*>**

A Promise that resolves to the value of the ID Token. The ID token will remain valid for 15 minutes.

### Example

```typescript
// Get ID Token
const idToken = await webflow.getIdToken()

// Print ID Token
console.log(idToken)
```

[Try this example](https://webflow.com/oauth/authorize?response_type=code\&client_id=19511de1ec410f9228d8dcbc9420e67916dea80d86d18f0c9a533eb475ea0f62)