Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ampliy withAuthenticator v/s with withOAuth

AWS Amplify withAuthenticator v/s with OAuth

I want to implement an authentication mechanism for react app. I am using AWS Amplify framework, It provides 3 methods either use custom UI or with the authenticator and with OAuth components. I see with OAuth component provides Cognito hosted UI while withAuthenticator component provides AWS Amplify Custom UI.

What are the pros and cons of both except the UI

like image 373
sunny975 Avatar asked Sep 16 '25 03:09

sunny975


1 Answers

withAuthenticator is email & password against Cognito User Pools where the user is created in that directory. withOAuth and Auth.federatedSignIn use the OAuth endpoint of Cognito User Pools for OAuth flows, which performs redirects for you to authenticate users against a social provider such as Login With Amazon, Facebook, Google Sign-In, etc. A corresponding user account will be created in Cognito User Pools directory after this process takes place. More info can be found here: https://aws-amplify.github.io/docs/js/authentication#concepts

like image 190
Richard Avatar answered Sep 17 '25 20:09

Richard