If I want the user to be logged out after 20 minutes of inactivity - is this approach valid?
- Set up Post Authentication Lambda Trigger
- In the Lambda listen for API calls
- If 20 minutes has passed and no API calls have been
made then call
RevokeToken
Is this approach going to allow me to log out the user after 20 minutes of inactivity?