Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dabit3/amplify-auth-demo

Demo of OAuth + Username / Password authentication in AWS Amplify
https://github.com/dabit3/amplify-auth-demo

amplify aws aws-amplify react serverless

Last synced: 4 days ago
JSON representation

Demo of OAuth + Username / Password authentication in AWS Amplify

Awesome Lists containing this project

README

        

# AWS Amplify Auth Example

![](authscreens.jpg)

### 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](https://dev.to/dabit3/the-complete-guide-to-user-authentication-with-the-amplify-framework-2inh) & the demo at [amplifyauth.dev](https://www.amplifyauth.dev/).

### Methods used to authenticate in this app:

```js
// 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](https://dev.to/dabit3/the-complete-guide-to-user-authentication-with-the-amplify-framework-2inh) or view [the documentation](https://aws-amplify.github.io/docs/js/authentication).