Cognito is a service provided by Amazon Web Services (AWS) that allows users to authenticate and access AWS resources through credentials such as ClientID and Secret, or username and password. After a user successfully authenticates, Cognito returns a JSON Web Token (JWT), which contains the main information required to verify that the user has accessed our application.
This library verifies that the signature of the JWT is valid, comes from a desired application, and that the token has not been tampered with or expired.
-
Install the library in your project using composer
composer require internacionalweb/cognito-token-verifier
-
Configure your project to use the library, check the Usage examples section for more information.
Adrián Martín |
Jhonatan Matías |