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

@8base/api-token-auth-client

Package Overview
Dependencies
Maintainers
3
Versions
149
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@8base/api-token-auth-client

The 8base api token auth client for the `AuthProvider`.

  • 0.25.1
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

8base api token auth client

The 8base api token auth client for the AuthProvider.

ApiTokenAuthClient

Table of Contents
  • ApiTokenAuthClient

ApiTokenAuthClient

Create instance of the api token auth client

Parameters
  • apiToken string Api Token generated in 8base app.
    • apiToken.apiToken

Usage

import { AuthContext, AuthProvider, type AuthContextProps } from '@8base/auth';
import { ApiTokenAuthClient } form '@8base/api-token-auth-client';

  const authClient = new ApiTokenAuthClient({
    apiToken: 'api-token',
  });

  ...

  <AuthProvider authClient={ authClient }>
    ...
      <AuthContext.Consumer>
        {
          (auth: AuthContextProps) => (<div />)
        }
      </AuthContext.Consumer>
    ...  
  </AuthProvider>

FAQs

Package last updated on 05 Jun 2019

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