Socket
Socket
Sign inDemoInstall

@zitadel/react

Package Overview
Dependencies
3
Maintainers
4
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @zitadel/react

Wraps oidc-client-ts to provide a simple interface for ZITADEL


Version published
Weekly downloads
362
increased by43.65%
Maintainers
4
Install size
2.02 MB
Created
Weekly downloads
 

Readme

Source

ZITADEL React SDK

Authenticate your ZITADEL users within your React applications.

NPM Version NPM License PRs Welcome

Getting Started

Features

The NPM package @zitadel/react wraps the NPM package oidc-client-ts. All oidc-client-ts features are available and the whole configuration can be overridden.

The following features are added to oidc-client-ts

The following is an example for a minimal OIDC configuration:

const zitadelAuth = createZitadelAuth({
  authority: `${myZITADELInstancesOrigin}`,
  client_id: `${myApplicationsClientID}`,
});

The following defaults apply:

  • The OIDC Code Flow with PKCE is used for authentication at ZITADEL.
  • ZITADELs user info endpoint is called to enrich the user profile.
  • The access token is refreshed automatically by default before it expires.
  • If you specify a project_resource_id, the scopes for retrieving the users roles from the user info endpoint are added automatically. You can conveniently use zitadelAuth.hasRole("someRoleKey").

Keywords

FAQs

Last updated on 23 May 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc