#✅ - Automatically sign users out after X days
4 messages · Page 1 of 1 (latest)
Customize your backend's auth user pool client as follows:
const { cfnUserPoolClient } = backend.auth.resources.cfnResources
cfnUserPoolClient.tokenValidityUnits = {
accessToken: 'hours',
idToken: 'hours',
refreshToken: 'days',
}
cfnUserPoolClient.accessTokenValidity = 1
cfnUserPoolClient.idTokenValidity = 1
cfnUserPoolClient.refreshTokenValidity = 30
@dense cobalt Thanks so much!
✅ - Automatically sign users out after X days