Using just the auth package (not aws-sdk) how can I configure Amplify with my credentials?
const {
Auth,
// configure?
} = require('@aws-amplify/auth')
Using just the auth package (not aws-sdk) how can I configure Amplify with my credentials?
const {
Auth,
// configure?
} = require('@aws-amplify/auth')
There is a configure method on the Auth class.
Example:
Auth.configure({
region: import.meta.env.VITE_AWS_REGION,
userPoolId: import.meta.env.VITE_USER_POOL_ID,
userPoolWebClientId: import.meta.env.VITE_USER_POOL_CLIENT_ID,
});