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
11 recasts
75 reactions
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