• Stars
    star
    310
  • Rank 134,926 (Top 3 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created over 4 years ago
  • Updated 8 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

React component to provide OpenID Connect and OAuth2 protocol support. 🌳

OIDC React

code style: prettier code style: airbnb Commitizen friendly semantic-release Build & Deploy

Language grade: JavaScript codecov Maintainability

oidc-react logo

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 🌳

More Repositories

1

nestjs-slack

Lightweight library to use Slack in NestJS applications.
TypeScript
48
star
2

nestjs-oso

Simplify implementation of oso with NestJS.
TypeScript
37
star
3

pulumi-appsync-modules

GraphQL Modules, but for AppSync and Pulumi 🌟
TypeScript
22
star
4

tripletexjs

Typescript-wrapper for Tripletex 2.0 API
TypeScript
8
star
5

website

Bjerk's official website, built using Astro 🚀
Astro
7
star
6

google-cloud-logger-slack

Use Google Cloud Logger to push messages to Slack
TypeScript
7
star
7

gke-semantic-release

📦🚀A builder image Google Cloud (Kubernetes Engine) using Semantic Release
Shell
6
star
8

stackie

Manage your DevOps configs with ease.
Go
6
star
9

fiken-js

TypeScript
5
star
10

swagger-codegen-action

5
star
11

vault-action

A Github Action that pulls secrets from HashiCorp Vault. 🔖
TypeScript
5
star
12

stact

TypeScript
4
star
13

pulumi-sendgrid

SendGrid Custom Provider
TypeScript
4
star
14

unieconomy-js

Uni Economy API Wrapper – based on Swagger
JavaScript
3
star
15

trippl

Connect Tripletex with Toggl – easily.
Go
2
star
16

tripletex-go

The Tripletex Client for Golang simplifies integrations against Tripletex 2.0 API
Go
2
star
17

PayEx.Ecommerce.Node

PayEx PSP Payments Node Library
2
star
18

nestjs-posthog

TypeScript
2
star
19

lambda-functions

Lambda functions in a box
TypeScript
1
star
20

jobs

🌳 Looking for new challenges? Check our openings!
1
star
21

bot

The @bjerk-bot's personal repository!
TypeScript
1
star
22

eslint-config

JavaScript
1
star
23

abax-node-sdk

🛠️ ABAX API client built with Typescript for Node.js
TypeScript
1
star
24

crayon-api-js

CloudIQ / Crayon API Javascript / Typescript SDK
TypeScript
1
star
25

.github

1
star