AWS Amplify Adapter
Authenticate users using AWS Amplify (Cognito) with OAuth and password-based authentication.
Installation
npm install @kavach/adapter-amplifyConfiguration
export default {
adapter: 'amplify',
providers: [
{ name: 'google', label: 'Continue with Google' },
{ name: 'facebook', label: 'Continue with Facebook' }
],
env: {
region: 'PUBLIC_AWS_REGION',
userPoolId: 'PUBLIC_COGNITO_USER_POOL_ID',
userPoolClientId: 'PUBLIC_COGNITO_CLIENT_ID'
}
}Environment Variables
| Variable | Description |
|---|---|
PUBLIC_AWS_REGION | AWS region (e.g., us-east-1) |
PUBLIC_COGNITO_USER_POOL_ID | Cognito User Pool ID |
PUBLIC_COGNITO_CLIENT_ID | Cognito App Client ID |
Supported Providers
- OAuth: Google, Facebook, Amazon, Apple
- Password: Email/Password
Capabilities
| Feature | Supported |
|---|---|
| Authentication | ✓ |
| Data API | — |
| RPC | — |
| Logging | — |
| Magic Link | — |
| Passkey | — |