New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@sonic-esports/auth-node

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sonic-esports/auth-node

[Nodejs] Authentication module for sonic esports | Unstable

latest
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

Sonic Esports NodeJs Auth Module

by Debanjan Tewary

This module handle the authentication services for sonic esports servers.

Static Badge

Usage

/**
 * Importing the auth client
 */
const { SeAuthNodeClient } = require("@sonic-esports/auth-node");

//OR
import { SeAuthNodeClient } from "@sonic-esports/auth-node";

Initialize the client instance with proper server config:

/**
 * Sonic Server Config can be defined between two types
 * DirectToDomainServerProps OR  ManualServerConfigProps
 */

//  DirectToDomainServerProps AKA Production Url
const auth = new SeAuthNodeClient({
  domain: "http://localhost:8000/v1",
});

// ManualServerConfigProps
const auth = new SeAuthNodeClient({
  protocol: "http",
  port: 8000,
  apiVersion: "v1",
  host: "localhost",
});

Calling the methods:

await auth.loginUser({ username: "random", password: "123456789" });

Search other helpfull methods from docs

FAQs

Package last updated on 08 Nov 2023

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