المشاريع
عرض على GitHub
bjerkio/oidc-react
حول
React component to provide OpenID Connect and OAuth2 protocol support. 🌳
تطوير الويب والتطبيقاتالنمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- ٠
- خلال 15 يومًا
- ٠
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصلOIDC React

About
React component (AuthProvider) to provide OpenID Connect and OAuth2 protocol support. Has hooks 🎉
Based on oidc-client-ts.
Quickstart
Install packages by running:
$ npm install oidc-react
Usage
import { AuthProvider } from 'oidc-react';
const oidcConfig = {
onSignIn: () => {
// Redirect?
},
authority: 'https://oidc.io/oauth',
clientId: 'this-is-a-client-id',
redirectUri: 'https://my-app.com/',
};
const Routes = () => (
<AuthProvider {...oidcConfig}>
<Switch>
<Route exact path="/">
<Dashboard />
</Route>
...
</Switch>
</AuthProvider>
);
Documentation
Apart from this README, you can find details and examples of using the SDK in the following places:
Contribute & Disclaimer
We love to get help 🙏 Read more about how to get started in CONTRIBUTING 🌳
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…