improved

FastAPI Demo App Enhancements

The Wristband FastAPI demo app now demonstrates two ways to protect your endpoints. ๐Ÿ”’

The typical session cookie auth is still present. There is now a second approach showing how to leverage a Token Endpoint combined with the React Client Auth SDK to pass access tokens directly from the browser to FastAPI without relying on the session cookie. The protected endpoint in FastAPI leverages the Python JWT Validation SDK to ensure a valid access token has been passed in the request headers.

fast api demo

The FastAPI Demo App can now pass access tokens directly from the browser to the FastAPI server.
The Python JWT SDK is used to validate the incoming token.