dabit3 / amplify-auth-demo

Demo of OAuth + Username / Password authentication in AWS Amplify

Home Page:https://www.amplifyauth.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AWS Amplify Auth Example

The Complete Guide to Authentication with the Amplify Framework

This repo goes along with the Dev.to blog post The Complete Guide to User Authentication with the Amplify Framework & the demo at amplifyauth.dev.

Methods used to authenticate in this app:

// launch Hosted UI (Buttons.js)
Auth.federatedSignIn()

// specify OAuth provider (Buttons.js)
Auth.federatedSignIn({provider: 'Facebook'})
Auth.federatedSignIn({provider: 'Google'})

// Manually sign up & sign in users (Form.js)
Auth.signUp({
  username, password, attributes: { email }
})
Auth.confirmSignUp(username, confirmationCode)
Auth.signIn(username, password)

To learn how to build this app, check out the post or view the documentation.

About

Demo of OAuth + Username / Password authentication in AWS Amplify

https://www.amplifyauth.dev/


Languages

Language:JavaScript 89.0%Language:HTML 7.1%Language:CSS 3.9%