0.2.20 • Published 4 months ago
modern-auth v0.2.20
modern-authenticator
An SSO authenticator!
Examples
import React from 'react';
import { BrowserRouter as Router } from "react-router-dom";
import { WebStorageStateStore } from "oidc-client-ts";
const oidcConfig = {
authority: <Client Authority>,
client_id: <Client ID>,
client_secret: <Client Secret>,
redirect_uri: <Redirect URI>,
scope: <Scope>,
loadUserInfo: true,
automaticSilentRenew: true,
checkSessionIntervalInSeconds: 5,
userStore: new WebStorageStateStore({ store: localStorage }),
};
function App() {
return (
<Router basename="/">
<ModernAuth oidc_config={oidcConfig}>
<ModernPages/> //Application Pages
</ModernAuth>
</Router>
);
}
export default App;
0.2.20
4 months ago
0.2.19
7 months ago
0.2.18
9 months ago
0.2.17
9 months ago
0.2.16
1 year ago
0.2.15
1 year ago
0.2.14
1 year ago
0.2.13
1 year ago
0.2.12
1 year ago
0.2.11
1 year ago
0.2.10
1 year ago
0.2.7
2 years ago
0.2.9
1 year ago
0.2.8
1 year ago
0.2.6
2 years ago
0.2.5
2 years ago
0.2.4
2 years ago
0.2.3
2 years ago
0.2.2
2 years ago
0.2.1
2 years ago
0.2.0
2 years ago
0.1.5
2 years ago
0.1.4
2 years ago
0.1.3
2 years ago
0.1.2
2 years ago
0.1.1
2 years ago
0.1.0
2 years ago