www/src/content/docs/blog/auth.mdx
import { YouTube } from '@astro-community/astro-embed-youtube';
Today we are launching Auth — a modern lightweight authentication library for your SST apps.
With a simple set of configuration, it'll create a function that'll handle various authentication flows. You can then attach this function to your API and SST will help you manage the session tokens.
Auth is completely stateless, standards based, and free to use.
You can read more about it over on our docs.
Auth is made up of the following pieces:
Auth — a construct that creates the necessary infrastructure.
Config.AuthHandler — a Lambda handler function that can handle authentication flows for various providers.
LinkAdapter to generate login links that can be sent over email or SMS.Session — a library for issuing and validating authentication sessions in your Lambda function code.
useSession hook.We hosted a launch livestream on YouTube where we did a demo and a deep dive into the internals.
<YouTube id="cO9Chk6sUW4" posterQuality="high" />The video is timestamped and here's roughly what we covered.
Follow the Setup section in our docs to get started.