Socket
Book a DemoInstallSign in
Socket

@bvndle/auth-react-native

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bvndle/auth-react-native

Authenticate with Bvndle for React Native

0.1.0
latest
npmnpm
Version published
Maintainers
1
Created
Source

Bvndle Authentication Client

Authenticate with Bvndle for React Native. See Onboard Partners to use Bvndle Partner services.

Quick start

Install

npm install @bvndle/auth-react-native

# or

yarn add @bvndle/auth-react-native

Usage

import { initAuthClient } from "@bvndle/auth-react-native";

const AUTH_CLIENT = initAuthClient({
  env: "<ENV>",
  clientId: "<YOUR_CLIENT_ID>",
  scope: "<SCOPE>",
  redirectUrl: "<REDIRECT_URL>",
});

const App = () => {
  const handleSignIn = () => {
    AUTH_CLIENT.signIn({
      onSuccess: (token) => {
        // Do something with the token
      },
      onError: (err) => {
        // Do something with the error
      },
    });
  };

  return <Pressable onPress={handleSignIn}>Sign in with Bvndle</Pressable>;
};

Merge user account with Bvndle

const handleMergeAccount = () => {
  AUTH_CLIENT.mergeAccount({
    userId: "<USER_ID>",
    redirectUrl: "<REDIRECT_URL>",
  });
};

<Pressable onPress={handleMergeAccount}>Merge Account</Pressable>;

Initializing Bvndle SSO Client initAuthClient:

ParamTypeDescription
envdev | prodEnvironment you want to use.
clientIdstringClient ID created after partner registration.
redirectUrlstringApp scheme or universal link. The redirect URL after sign in.
scopeemail | fullname | profile(optional) Determines the user data that is returned. Default is profile.

Merging user account with Bvndle mergeAccount:

ParamTypeDescription
userIdstringThe registered user ID with the partner application.
redirectUrlstring(optional) The redirect URL after merge account.

Keywords

sso

FAQs

Package last updated on 29 May 2025

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.