cio-auth
v1.0.1
Published
`npm i -s cio-auth`
Readme
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
