{"repo":"zitadel/react-auth","free":true,"listed":false,"github":"https://github.com/zitadel/react-auth","clone":"git clone https://github.com/zitadel/react-auth.git","description":"Official Zitadel auth integration for React.","language":"TypeScript","stars":20,"topics":["react","authentication","typescript","zitadel","auth","authn","authorization","authz","iam","identity"],"license":null,"category":"auth-billing-email","readme_excerpt":"React Auth A React integration that provides seamless authentication for single-page applications using OpenID Connect with the Authorization Code flow and PKCE, session management, and idiomatic React context and hooks. This integration brings the power and flexibility of OIDC to React applications with full TypeScript support, built on top of oidc-client-ts , and an API surface compatible with react-oidc-context . Why? Modern single-page applications require robust, secure, and flexible authentication systems. Integrating OIDC and session management with a React application requires careful consideration of the browser redirect lifecycle, silent token renewal, and TypeScript integration. However, a direct integration isn't always straightforward. Different types of applications or deployment scenarios might warrant different approaches: - Browser Redirect Lifecycle: OIDC sign-in operates through full browser navigations to the identity provider and back. A proper integration should detect the authorization response on return, complete the code exchange, and clean the authorization parameters from the URL automatically. - Reactive Auth State: React components need to react to authentication state without boilerplate. The useAuth() hook exposes isAuthenticated , isLoading , user , and error as plain values that drive re-renders. - Route Protection: Many applications need to gate routes behind authentication. withAuthenticationRequired() wraps a component so that unauthenticat","default_branch":null,"files":null,"tree":[],"storefront":"/r/zitadel","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/zitadel/react-auth/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}