{"repo":"soofstad/react-oauth2-pkce","free":true,"listed":false,"github":"https://github.com/soofstad/react-oauth2-pkce","clone":"git clone https://github.com/soofstad/react-oauth2-pkce.git","description":"Provider agnostic OAuth2 Authorization Code flow with PKCE for React","language":"TypeScript","stars":172,"topics":["github","jwt","oauth2","react","authentication","azure","azuread","microsoft","oauth","fusionauth"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"react-oauth2-code-pkce React package for OAuth2 Authorization Code flow with PKCE Adhering to the RFCs recommendations, cryptographically sound, and with zero dependencies! What is OAuth2 Authorization Code Flow with Proof Key for Code Exchange? Short version; The modern and secure way to do authentication for mobile and web applications! Long version; Features - Authorization provider-agnostic. Works equally well with all OAuth2 authentication servers following the OAuth2 spec - Supports OpenID Connect (idTokens) - Pre- and Post-login callbacks - Session expired callback - Silently refreshes short-lived access tokens in the background - Decodes JWT's - A total of 440 lines of code, easy for anyone to audit and understand Example For more advanced examples, see ./examples/ . Install The package is available on npmjs.com here; https://www.npmjs.com/package/react-oauth2-code-pkce API IAuthContext values The object that's returned by useAuthContext() provides these values; Configuration parameters react-oauth2-code-pkce 's goal is to \"just work\" with any authentication provider that either supports the OAuth2 or OpenID Connect (OIDC) standards. However, many authentication providers are not following these standards, or have extended them. With this in mind, if you are experiencing any problems, a good place to start is to see if the provider expects some custom parameters. If they do, these can be injected into the different calls with these configuration options; - extraAuthPa","default_branch":null,"files":null,"tree":[],"storefront":"/r/soofstad","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/soofstad/react-oauth2-pkce/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."}