0.0.2 • Published 7 months ago

@buildel/buildel-auth v0.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
7 months ago

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.