lookiuv.blogg.se

Usesess
Usesess






We'll be allowing your users to Sign in with Google.įollow along by creating a new SST app by running npx Alternatively, you can refer to this example repo that's based on the same template.Īuth works by attaching additional routes to your API to handle authentication.

#Usesess how to#

Let's look at an example of how to add auth to your app.

  • Full typesafety for issuing and validating sessions with the useSession hook.
  • Support for passing tokens to the frontend via a cookie or the query string.
  • Implemented with stateless JWT tokens that are signed with the RSA key pairs mentioned above.
  • Session - a library for issuing and validating authentication sessions in your Lambda function code.

    usesess

    Can be extended with custom adapters to support more complex workflows, like multi-tenant SSO.A LinkAdapter to generate login links that can be sent over email or SMS.OIDC and OAuth adapters that work with any compatible service.High level adapters for common providers like Google, GitHub, Twitch, etc.Stores the RSA key pair as secrets in the app's Config.ĪuthHandler - a Lambda handler function that can handle authentication flows for various providers.

    usesess

  • Securely generates a RSA public/private key pair to sign sessions.
  • usesess

  • The API routes to handle the authentication flows.
  • Want to learn more about Auth? Check out the launch livestream on YouTube.Īuth - a construct that creates the necessary infrastructure.






    Usesess