loginToMiniApp
. Learn more
here.https://farcaster.xyz
as an allowed domain. Allowed domains is required for iframe-in-iframe which Farcaster uses, even for staging environments.Domains
tab of your Configuration > App settings
page in the developer dashboard and configure allowed domains for your app. This is the URL that your app is deployed to.
To use the embedded wallet, your application must also include https://farcaster.xyz
as an allowed domain. Including Farcaster as an allowed domain allows the Privy iframe, where the embedded wallet is hosted, to load in the Farcaster browser app.
eoaOnly
login method
here.'farcaster'
as an upfront login method in your PrivyProvider
, like so:
useEffect
to your main Mini App page. This will automatically log a user in, if they are not already authenticated.
loginToMiniApp
from useLoginToMiniApp
. This can be done by fetching a signature from an external wallet, or in an app with frame support (such as the Base app) by calling frameSdk.actions.signIn
.
ready
and authenticated
from the usePrivy
hook is true
before taking
actions!Farcaster
object, including their fid
, username
, pfp
and more, in the user
object returned by the usePrivy
hook.
That’s it! You can now use this to power composable experiences in your new Mini App. When building out your Mini App, be sure to visit Farcaster’s resources page for help with testing and common issues!