cio-auth

1.0.1 • Public • Published

cracked.io auth js edition

usage

npm i -s cio-auth

if u want non authenticated users to be able to access your tools, add false as the first argument to the login function

cjs

const cioAuth = require('cio-auth');

async function authenticate() {
    await cioAuth.login();
};
await authenticate();

//anything after the autenticate function will be ran if the user is authenticated
console.log("Hello, authenticated user!");

es6/ts

import cioAuth from "cio-auth";

await cioAuth.login();

//anything after the autenticate function will be ran if the user is authenticated
console.log("Hello, authenticated user!");

notes

  • contact me if this stops working or u have bugs or dont know how to use it
  • i threw this together in 30 mins its probably not perfect

Readme

Keywords

none

Package Sidebar

Install

npm i cio-auth

Weekly Downloads

2

Version

1.0.1

License

ISC

Unpacked Size

4.01 kB

Total Files

3

Last publish

Collaborators

  • aydynx