Giter VIP home page Giter VIP logo

react-native-auth-starter's Introduction

React Native Auth Starter

Easy authentication for your next React Native app.

๐ŸŽง Powered by Amplify

Features

โœ… Preconfigured, production tested authentication flow

โœ… 2 Factor Authentication Enabled

โœ… React Navigation

โœ… Redux

โœ… Amplify React Native

โœ… Opinionated yet configurable

โœ… Themeable

โœ… Cross-Platform

Getting Started

  1. Clone project
git clone https://github.com/dabit3/react-native-auth-starter.git
  1. Change into react-native-auth-starter directory
cd react-native-auth-starter
  1. Install dependencies
yarn || npm install
  1. Configure AWS Amplify config in index.js by adding your own aws-export.js file in the src directory. If you do not already have this file, continue to step 5

  1. Install AWSMobile CLI if not already installed and configured (for steps on how to configure AWSMobile CLI, see this two minute video)
npm i -g awsmobile-cli
awsmobile configure
  1. Create a new AWS Mobile Hub Project using the AWSMobile CLI
awsmobile init
  1. Enable User Sign In
awsmobile user-signin enable
awsmobile push

react-native-auth-starter's People

Contributors

dabit3 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

react-native-auth-starter's Issues

Error signing in, code cannot be empty

Hi nader, awesome work around here. I noticed a few things:
-Why does the user needs to put the auth code after the signup proccess and on his login?
-The error that I got was after the signup auth confirmation, on signing in, after confirming my email

"exp": 1520812253, "iat": 1520808653, "iss": "[..]", "phone_number": "[..]", "phone_number_verified": false, "sub": "[..]", "token_use": "id", }, }, "refreshToken": CognitoRefreshToken { "token": "eyJjdHkiOiJKV1QiLCJlbmMiOiJBMjU2R0NNIiwiYWxnIjoiUlNBLU9BRVAifQ.Pl02TdMCopfg3MoQPOyw1dvXV5hzHbpbB93TRshztT0s8MnJrMcpYF73jEf514nIB-JuVA9BeoHVJYp2XmyvAwWNZ7SKnL5XFRb7oz1cLRjDgdkaKhrUV_Q3izdbzoSz2M7kBUYZ0LJPWTX0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wE6KTovJ0govV95XzPUh71Dj7d1YLLQs_Qr3pSvOQSw8CdqE5e4Y0ueaos_hDUik_Ym4EQ2ZwqTTG6xr4Z-6-q-ObsPgrEEpr2A6MiYkfR7eBsSfphrLG0uMN0z7BXRBRJjGaZ_g0yJUCSOJhi9bE9WoqNWpTchpFOA0wLJ5CVwS2Sms5E2NsgdgWLiyjkCf9En-o4U8siDFR-5jh9Alqmet5n_YelD2mjKeplk8xbjm8poEeQY7MqBk-c5RadNhWJo1iHqMHoMl9ASBewiO-S_ccAEYW90nUpFac1dmBOFTkp-sTVKizVx0exmtYah1Z1YUKs_mzj3f0JnQnYttmViWVEjqiT3yClkn29XyyLiwDKrSQYYQ4aejd8wGq94fG_NmSEIhqGyu2HMZajecllFcBtlZ3rZnZfowsjKypY.V8VpJI4eb7YTkLE39PlAsg", }, }, "storage": [Function MemoryStorage], "username": "baralla", }, }, "saves": Array [], } 19:51:24 error signing in: Code cannot be empty

Thanks, any help would be apreciatted ^^

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.