# `plandalf.identify()`

Set the current visitor identity.

Implemented by the [browser object](https://github.com/plandalf/numi/blob/fc6f42b5ade3d63b71623934838a6509f17203e2/packages/sdk/src/browser.ts#L429); parameter and return types follow the [delegated class declaration](https://github.com/plandalf/numi/blob/fc6f42b5ade3d63b71623934838a6509f17203e2/packages/sdk/src/core/sdk.ts#L296).

Call this after `plandalf.ready()`. The browser wrapper can return `undefined` before initialization.

## Signature

```typescript
plandalf.identify(token: string): void
```

## Arguments

| Name | Type | Meaning |
| --- | --- | --- |
| `token` | `string` | Customer JWT or email string. |

## Example

```javascript title="identify.js" lineNumbers lineNumberStart=1
plandalf.ready(() => {
  plandalf.identify('jane@example.com')
})
```

## Returns

`void`

## Behaviour

Pass a customer JWT or email string. The value is persisted for later SDK calls. Do not put a secret API key in browser code.

[All plandalf methods](https://plandalf.com/docs/sdk)

Source: https://plandalf.com/docs/sdk/identify
