0.2.27 • Published 8 months ago
modern-auth v0.2.27
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.27
8 months ago
0.2.26
8 months ago
0.2.25
8 months ago
0.2.24
8 months ago
0.2.23
8 months ago
0.2.22
8 months ago
0.2.21
8 months ago
0.2.20
2 years ago
0.2.19
2 years ago
0.2.18
2 years ago
0.2.17
2 years ago
0.2.16
2 years ago
0.2.15
2 years ago
0.2.14
2 years ago
0.2.13
3 years ago
0.2.12
3 years ago
0.2.11
3 years ago
0.2.10
3 years ago
0.2.7
3 years ago
0.2.9
3 years ago
0.2.8
3 years ago
0.2.6
3 years ago
0.2.5
3 years ago
0.2.4
3 years ago
0.2.3
3 years ago
0.2.2
3 years ago
0.2.1
3 years ago
0.2.0
3 years ago
0.1.5
3 years ago
0.1.4
3 years ago
0.1.3
3 years ago
0.1.2
3 years ago
0.1.1
3 years ago
0.1.0
3 years ago