You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

@8base/api-token-auth-client

Package Overview
Dependencies
Maintainers
6
Versions
149
Alerts
File Explorer

Advanced tools

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`.


Version published
Maintainers
6
Created

Readme

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/react-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 22 Mar 2022

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc