🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@bitfinex/bfx-facs-auth-google

Package Overview
Dependencies
Maintainers
4
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bitfinex/bfx-facs-auth-google

Bitfinex Google Oauth Facility

latest
Source
npmnpm
Version
1.2.3
Version published
Maintainers
4
Created
Source

bfx-facs-auth-google

Example configuration

{
  "a0": {
    "google" : {
      "clientId": "legacy-web-client-id",
      "clientSecret": "legacy-web-client-secret",
      "redirectUris": {
        "sso_auth": "https://web.example.com/auth/callback"
      },
      "mobile": {
        "android": {
          "clientId": "android-prod-client-id",
        },
        "ios": {
          "clientId": "ios-prod-client-id",
        }
      }
    },
    "ADM_USERS" : [
      {
        "email": "admL1@bitfinex.com",
        "password": "example123",
        "level": 1
      },
      {
        "email": "admL2@bitfinex.com",
        "password": "example123",
        "level": 2
      },
      {
        "email": "google@bitfinex.com",
        "password": false,
        "level": 0
      }
    ]
  }
}

Selecting the right client

  • Security: Token aud (audience) is the source of truth - clientKey is just a hint
  • clientKey (optional) can be sent by frontend/mobile to indicate which client to use (e.g. androidProd)
  • The backend validates the Google token's aud field and maps it to a configured client ID
  • If clientKey is provided, it must match the token's aud - otherwise request is rejected
  • Resolution order: aud match → clientKeywebClient (from root google.clientId)

Keywords

bitfinex

FAQs

Package last updated on 29 Jan 2026

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