Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/dabit3/amplify-auth-demo
- Owner: dabit3
- Created: 2019-04-29T15:05:28.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-06-15T22:14:06.000Z (over 3 years ago)
- Last Synced: 2024-11-02T20:33:04.341Z (11 days ago)
- Topics: amplify, aws, aws-amplify, react, serverless
- Language: JavaScript
- Homepage: https://www.amplifyauth.dev/
- Size: 1.37 MB
- Stars: 112
- Watchers: 5
- Forks: 29
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-aws-amplify - Amplify Authentication Demo
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).