DEV Community

Discussion on: The Complete Guide to User Authentication with the Amplify Framework

Collapse
 
rudyhadoux profile image
rudyhadoux

Hi, it seems impossible to create both API_KEY and Cognito User Pool in the same amplify project. So, how to achieve that ?

Collapse
 
dabit3 profile image
Nader Dabit • Edited

You can set multiple auth types in the CLI when initializing or running amplify update auth, just make sure you are on the latest version of the CLI. You can then make requests using either the base authentication type, or passing in a custom type aws-amplify.github.io/docs/js/api#...

Collapse
 
rudyhadoux profile image
rudyhadoux

A lot of changes indeed. Thanks.

With authMode: 'AMAZON_COGNITO_USER_POOLS', there is a JWT verification for each request ?