@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