Exciting release!Introducing "safe npm". Learn more
Socket
Log inDemoInstall

@8base/apollo-client

Package Overview
Dependencies
8
Maintainers
6
Versions
220
Issues
File Explorer

Advanced tools

@8base/apollo-client

The Apollo Client library contains an extended implementation of [ApolloClient](https://www.apollographql.com/docs/react/api/apollo-client.html) that includes several links to work with 8base services.

    1.6.2latest
    GitHub

Version published
Maintainers
6
Weekly downloads
941
increased by26.48%

Weekly downloads

Readme

Source

8base Create Apollo Client

The Apollo Client library contains an extended implementation of ApolloClient that includes several links to work with 8base services.

EightBaseApolloClient

Table of Contents

EightBaseApolloClient

Extends ApolloClient

Extends Apollo Client by 8base several links.

Parameters
  • config Object The Apollo Client config.
    • config.uri string Endpoint of the GraphQl server.
    • config.getAuthState Function Used to retrieve authentication state.
    • config.getRefreshTokenParameters Function Used to retrieve the refresh token parameters.
    • config.onAuthSuccess Function Callback that is executed when an attempt to refresh authentication is successful.
    • config.onAuthError Function? Callback which is executed when an attempt to refresh authentication fails.
    • config.onIdTokenExpired Function? Callback which is executed when id token is expired.
    • config.onRequestSuccess Function? Callback which is executed when a request is successful.
    • config.onRequestError Function? Callback which is executed when a request fails
    • config.extendLinks Function? Function that extends standard array of links.

Returns any instance of the Apollo Client

FAQs

Last updated on 22 Mar 2022

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket
support@socket.devSocket SOC 2 Logo

Product

  • Package Issues
  • 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