A sample authentication service implemented with a server-less architecture, using AWS Lambda to host and execute the code and Amazon DynamoDB as persistent storage. This provides a cost-efficient solution that is scalable and highly available and can be used with Amazon Cognito for Developer Authenticated Identities.
The cogntio token is valid for 24 hours and the temp. creds. that you get with STS after successful login is valid for an hour. You can use the cognito token to refresh the temp. creds.
I am adapting this for ios/moblie. How long does the session last? In AWS iOS SDK, do I need to use these two functions: