Is there a way to set the length of how long a cog...
# help
i
Is there a way to set the length of how long a cognito token is valid for? ie:
Copy code
const auth = new Auth(this, 'Auth', { tokenDuration: '1 day' )}
From my understanding the default is 1 hour but can go as high as one day.
b
Something like this:
Copy code
new Auth(this, "user-auth", {
            cognito: {
                userPoolClient: {
                    accessTokenValidity: Duration.minutes(5),
                },
            }
        });