The Wayback Machine - https://web.archive.org/web/20200912232527/https://github.com/bartonhammond/reactnative-oauth-hapi
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

README.md

oAuth example with ReactNative and Hapi Server

For a great writeup about the Hapi server implementation see http://www.sitepoint.com/oauth-integration-using-hapi/

These instructions assume you've setup ReactNative locally.

=======

Platform Signin Authorize Logout
Android Signin Auth Logout
iOS Signin Auth Logout

Setup

Client

cd client
npm install

Android

  • start emulator
  • if using genyMotion, read and follow directions of genymotion/README.md
react-native run-android

IOS

open .
select ios/oAuth.xcodeproj
within XCode -> Run

Server

The server is dependent on having a GitHub Application. You will need to join the Github Developer Program and register an application here

cd server
npm install
cp config-example.js config.js
edit config.js for GitHub application info
npm start

About

Example ReactNative app demonstrating oAuth via WebView with a Hapi Server

Resources

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.