Content
@
https://warpcast.com/~/channel/fc-devs
0 reply
0 recast
0 reaction
vrypan |--o--|
@vrypan.eth
What is the right way to use SIWF inside a mini app? And also have it work if the user is just viewing the site in their browser?
2 replies
0 recast
2 reactions
Kasra Rahjerdi
@jc4p
at the most bare level: - if you just want it in mini app, all you need to do is verify a signature (fc authkit makes this easy) - if you want it in your .com, it’s the exact same thing but you need to store a session cookie on the mini app you can call sign in every load and it’s implicitly approved, so i do that
1 reply
0 recast
1 reaction
vrypan |--o--|
@vrypan.eth
I have a website that uses auth-kit, like this: `https://docs.farcaster.xyz/auth-kit/installation`. User can sign in using their farcaster account. Now, I want this website to be used as a mini app. Leaving aside manifest and metadata, etc, when the site is opened as a mini app, on mobile, it shows me a QR code, instead of triggering the SIWF mobile flow.
1 reply
0 recast
1 reaction
vrypan |--o--|
@vrypan.eth
So my question is probably: How do I properly use authkit inside a mini app?
1 reply
0 recast
1 reaction
Kasra Rahjerdi
@jc4p
you need to call sdk.actions.signIn it will insta return a message and signature you can send to backend to verify
1 reply
0 recast
1 reaction