Socket
Socket
Sign inDemoInstall

@8base/api-token-auth-client

Package Overview
Dependencies
13
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
Weekly downloads
1.2K
increased by64.87%
Maintainers
6
Install size
13.8 MB
Created
Weekly downloads
 

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

Last updated on 22 Mar 2022

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