🚀 DAY 4 OF LAUNCH WEEK: Introducing GitHub Actions Scanning Support.Learn more →
Socket
Book a DemoInstallSign in
Socket

@j2inn/scram

Package Overview
Dependencies
Maintainers
18
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@j2inn/scram

TypeScript client SCRAM authentication library

latest
npmnpm
Version
2.0.0
Version published
Weekly downloads
1.8K
-16.53%
Maintainers
18
Weekly downloads
 
Created
Source

TypeScript client SCRAM authentication library

This library is used by clients wanting to authenticate with servers that use SCRAM (Salted Challenge Response Authentication Mechanism).

For more information on SCRAM, please see the specification.

Installation

npm install @j2inn/scram

Use

import authenticate from '@j2inn/scram'

...

async function onAuthenticate(username: string, password: string): void {
  await authenticate({
    username,
    password,
    uri: new URL('/auth', window.location.href)
  })
}

An alternative fetch parameter can be specified if this library is used in a NodeJS environment...

import fetch from 'node-fetch'
import authenticate from '@j2inn/scram'

...

async function onAuthenticate(username: string, password: string, uri: string): void {
  await authenticate({
    username,
    password,
    fetch,
    uri
  })
}

Keywords

j2

FAQs

Package last updated on 10 Jun 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