Skip to content

quickAuth.token

Returns an active Quick Auth session token when present.

Usage

import { sdk } from '@farcaster/frame-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.