Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@8base/auth

Package Overview
Dependencies
Maintainers
2
Versions
223
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@8base/auth

The 8base Auth package contains provider with authentication state and auth helpers.

  • 0.6.3
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

8base Auth

The 8base Auth package contains provider with authentication state and auth helpers.

AuthProvider

Table of Contents
  • AuthProvider
  • Auth0WebClient

AuthProvider

Extends Component

Provides access to the authentication state.

Properties
  • children React$Node Children of the provider.
  • authClient AuthClient Instance of the auth client.

Auth0WebClient

Create instacne of the auth web zero0 client.

Parameters
  • options AuthClientOptions
  • workspaceId string Identifier of the 8base app workspace.
  • domain string Domain. See auth0 documentation.
  • clientID string Client id. See auth0 documentation.
  • redirectUri string Redurect uri. See auth0 documentation.

Usage

Simple Usage

import { AuthProvider, Auth0WebClient, AuthConsumer } from '@8base/auth';

  const auth0WebClient = new Auth0WebClient({
    domain: 'domain',
    clientID: 'client-id',
    redirectUri: `${window.location.origin}/auth/callback`,
    logoutRedirectUri: `${window.location.origin}/auth`,
    workspaceId: 'workspace-id',
  });

  <AuthProvider authClient={ auth0WebClient }>
    ...
      <AuthConsumer>
        {
          (auth: AuthContextProps) => (<div />)
        }
      </AuthConsumer>
    ...  
  </AuthProvider>

FAQs

Package last updated on 29 Nov 2018

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc