Neynar Documentation
Usage
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.
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.