> ## Documentation Index
> Fetch the complete documentation index at: https://docs.neynar.com/llms.txt
> Use this file to discover all available pages before exploring further.

# quickAuth.token

> Returns an active Quick Auth session token when present

Returns an active Quick Auth session token when present.

<Note>
  It's generally preferable to use [getToken](/miniapps/sdk/quick-auth/get-token) since this will always return a fresh token, however, this property is provided for situations where a synchronous API is useful.
</Note>

## Usage

```ts theme={"system"}
import { sdk } from '@farcaster/miniapp-sdk'

// will be undefined
console.log(sdk.quickAuth.token)

await sdk.quickAuth.getToken();

// will return the active token acquired above
console.log(sdk.quickAuth.token)
```

You must [validate the token on your server](/miniapps/sdk/quick-auth#validate-a-session-token).


## Related topics

- [quickAuth.fetch](/miniapps/sdk/quick-auth/fetch.md)
- [quickAuth.getToken](/miniapps/sdk/quick-auth/get-token.md)
- [Quick Auth](/miniapps/sdk/quick-auth.md)
- [What's New](/miniapps/sdk/changelog.md)
- [Authenticating users](/miniapps/guides/auth.md)
