@buildel/buildel-auth
v0.0.2
Published
A library that generates authentication data for socket connection with the Buildel service.
Downloads
18
Readme
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.