@buildel/buildel-auth
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

Buildel-auth

A library that generates authentication data for socket connection with the Buildel service.

Installation

To install the package using npm:

npm install @buildel/buildel-auth

Usage

import {BuildelAuth} from "@buildel/buildel-auth";

// initialize BuildelAuth class
const buildelAuth = new BuildelAuth(process.env.BUILDEL_SECRET); 

// generate auth data for your socket connection
const authData = buildelAuth.generateAuth(socketId, channelName);

License

This project is licensed under the MIT License.

Package Sidebar

Install

npm i @buildel/buildel-auth

Weekly Downloads

2

Version

0.0.2

License

MIT

Unpacked Size

37.8 kB

Total Files

7

Last publish

Collaborators

  • kielbasa-elp
  • michalwarda