sso-acnapi
Git clone the project and navigate into the project
Last updated 2 years ago by binh710 .
ISC · Repository · Original npm · Tarball · package.json
$ cnpm install sso-acnapi 
SYNC missed versions from official npm registry.

Getting Started

Git clone the project and navigate into the project

To run the app

Open 1 terminal and run npm start

Install the Expo app on your iOS or Android phone. Follow the instruction on the terminal to run the app on your phone.

To edit the code

If you already have an app.

Import SSOButton

import SSOButton from './SSOButton';

Include the SSOButton in your code in order to use it. You will also need to write a ssoLogin() method to handle the jwt token that is generated once your user successfully signed in.

<SSOButton sso_url={YOUR_SSO_URL)} redirect_url={YOUR_SSO_REDIRECT_URL} action={(jwt_token) => this.ssoLogin(jwt_token)} />

If you are starting a new project

Create a config.json file in 'src' folder where you store your sso_url and your sso_redirect url. For example:

{
  "url": {
    "sso_url": "YOUR_SSO_URL",
    "redirect_url": "YOUR_SSO_REDIRECT_URL",
    "check_expiry": "VALIDATE_TOKEN_URL (if have)"
  }
}

Open App.js to see how the SSOButton component is being imported and use.

Notes:

This project was bootstrapped with Create React Native App.

For more information, please visit https://github.com/react-community/create-react-native-app.

Current Tags

  • 0.1.0                                ...           latest (2 years ago)

1 Versions

  • 0.1.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (3)
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |