ellaisys / aws-cognito

AWS Cognito package (with MFA Feature) using the AWS SDK for PHP/Laravel
https://ellaisys.github.io/aws-cognito/
MIT License
110 stars 43 forks source link

Can you please anyone suggest how I can manage the new generated token for authentication purpose ? #3

Closed diptajit-techpro closed 3 years ago

diptajit-techpro commented 3 years ago

I am using this for API only. How does the expiry time of the token is managed ?

amitdhongde commented 3 years ago

Hi, Are you still facing issues with validating the API token? If yes, you need to pass it as a typical JWT or OAuth token with the request header having an Authorization key with value as bearer {token}.... note the space after the word "bearer"

amitdhongde commented 3 years ago

I am using this for API only. How does the expiry time of the token is managed ?

The current expiry is set to 3600 seconds (01 hour). It is not parameterized, but we will make it parameterized in the next release.