0.1.10 • Published 6 years ago

oidc-react-routes v0.1.10

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

OAuth Callback Routes

This library provides the components that will handle when redirects OAuth issues during a login/renew process. They are exposed as simple React component, and do not impact the architecture of the overall React app.

Simple Usage

OidcRouter separate the main application and callback pages into different routes, so they do not interfere with one another. Simply use it as the parent component of your main app, as below:

// index.js
import { OidcRouter } from 'oidc-react-routes';
import App from './App';    // assume App is the main application

// here we assume we have configured oidc-client to use /routercallback and /routersilent as the callback routes
ReactDOM.render(
    <OidcRouter callbackPath="/routercallback" silentCallbackPath="/routersilent">
        <App />
    </OidcRouter>,
    document.getElementById('root'));

Other Usage

There will be more documentation on advanced usage of this library

0.1.10

6 years ago

0.1.9

6 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago