Content
@
https://warpcast.com/~/channel/miniapps
0 reply
0 recast
0 reaction
Tony D’Addeo
@deodad
in the latest Mini App SDK quickAuth is moved out of experimental into its own module `sdk.quickAuth` with two fns: - getToken - fetch (wrapper around the Fetch API that automatically adds a Quick Auth session token in a header) session tokens are automatically stored in memory and returned when present and not expired so devs are no longer required to do this—just call `getToken` whenever you want to access it or even easier just `fetch` docs got expanded quite a bit with three new examples: - make authenticated requests (fetch) - get a token directly (getToken) - validating the token on the server lastly there's now a reference hono backend implementation that shows validating a session token in middleware that is deployable on cloudflare (link in next cast) https://miniapps.farcaster.xyz/docs/sdk/quick-auth
5 replies
12 recasts
74 reactions
Tony D’Addeo
@deodad
would appreciate any feedback—let me know what's unclear or what you'd like to see expanded to date Quick Auth has generated over 225k session! and here's the hono-backend implementation https://github.com/farcasterxyz/miniapps/tree/main/examples/hono-backend
0 reply
1 recast
18 reactions
Sinaver Idrisov
@sinaver.eth
@deodad, can privy leverage quick auth instead of signIn flow?
1 reply
0 recast
1 reaction
jp 🎩
@jpfraneto.eth
epic. i love using quick auth. ty man
0 reply
0 recast
1 reaction
Callum Wanderloots ✨
@wanderloots.eth
Was just about to build quick auth in, simplified a few things for me, thank you!
0 reply
0 recast
1 reaction
Samuel ツ
@samuellhuber.eth
Do you know how interplay here is with privy cookie based sessions? @payton @cobyg We have a middleware validation privy sessions via cookies which doesn’t fire since web mini apps are iFrames and cookies are same-site Cc @ericjuta @sidshekhar
0 reply
0 recast
2 reactions