Import
Usage
The auth helpers work with SST’s Auth component to handle authentication flows.Basic Auth Flow
Auth Adapters
SST provides adapters for popular authentication providers.Cognito Adapter
Custom Adapter
Create your own auth adapter:Session Management
Handle user sessions in your functions:Protecting Routes
Use auth with API Gateway:sst.config.ts
JWT Verification
Verify JWTs in your handlers:OAuth Flows
Handle OAuth callbacks:Best Practices
Validate All Tokens
Always validate tokens before trusting them:Use Secure Headers
Set appropriate security headers:Handle Token Expiry
Check token expiration:Related
Auth Component
Set up authentication in your infrastructure
Resource Access
Access linked resources at runtime