danilop / LambdAuth

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.
MIT License
1.37k stars 234 forks source link

How long does the session last after login? #42

Open ChrisWi opened 8 years ago

ChrisWi commented 8 years ago

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:

jfaraklit commented 8 years ago

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.