Skip to main content
Make a Fetch request with Authorization header set to Bearer ${token} where token is a Quick Auth session token.
This is a convenience function that makes it easy to make authenticated requests but using it is not a requirement. Use getToken to get a token directly and attach it to requests using the library and format of your choosing.

Usage

import { sdk } from '@farcaster/miniapp-sdk'

await sdk.quickAuth.fetch(url)
See the make authenticated requests example.

Parameters

See Fetch parameters.

Return Value

See Fetch return value.