CodeBy React auth wrapper & components providing authentication UI and logic for React applications using Apollo Client and GraphQL. The latest version is 1.1.53, with moderate release activity. It integrates with apollo-boost, react-apollo, lodash, and prop-types. Unlike generic auth libraries, it provides ready-to-use components like CBYAuthScreen that handle authentication flows with GraphQL backends.
npm install cby-authNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Minimal setup: render the CBYAuthScreen component to display authentication form.
Install all peer dependencies manually: npm install apollo-boost graphql lodash prop-types react react-apollo react-dom
Wrap your app with <ApolloProvider client={client}> before using any cby-auth components.Check the package name on npm: 'cby-auth' (this one) vs 'cby-auth2'.
npm install apollo-boost
Wrap component tree with <ApolloProvider client={client}>