Code Monkey home page Code Monkey logo

react-auth-client's Introduction

React Social Authentication Client

React Social Auth

Getting Started

git clone https://github.com/funador/react-auth-client.git
cd react-auth-client
npm i && HTTPS=true npm start

Because of Facebook, https is required. Even in development.

Facebook requires all apps interacting with their api (including those in development) to be served over https. This means you will need to run create-react-app in https mode. Plus set up certificates for your server. Go ahead and get yourself a cup of coffee. This could take a minute.

To add https to localhost follow these instructions (OS X).

You will also need to manually add the https certificate to Chrome as described here.

You may also need to open a seperate tab for https://localhost:8080 and accept the security warning before the client will push requests through.

If you only want to use Twitter/Google/Github authentication (https is not required), follow the instructions in this branch

Client

Depending on your OS you will have to flag the HTTPS enviornment variable differently. Above is for OS X. Documentation is here.

Server

Follow the instructions in the server repo

Finally open https://localhost:3000

Deploy

Everything is set up to deploy to Netlify. You just need to npm run build on the client and deploy to netlify.

Issues

Something not working? Please open an issue

react-auth-client's People

Contributors

funador avatar

Stargazers

Russell Beauchesne avatar

Watchers

James Cloos avatar Russell Beauchesne avatar

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.