Returns an active Quick Auth session token when present
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 undefinedconsole.log(sdk.quickAuth.token)await sdk.quickAuth.getToken();// will return the active token acquired aboveconsole.log(sdk.quickAuth.token)