Skip to main content
Returns an active Quick Auth session token when present.
It’s generally preferable to use getToken since this will always return a fresh token, however, this property is provided for situations where a synchronous API is useful.

Usage

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.