This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

reauth-express
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

express-reauth

This is build on top of the ReAuthAPI for ReAuth by RedCrafter07

usage:

app.get("/login", async (req, res) => {
    try {
        let user = await getUser("<your-token>", "<your-id>", req, res);
    }
    catch {
        return res.send("Unauthorized");
    }
    if(!user) return;
    //process
    res.send("Authorized");
});

re-auth-api:

reauthExpress.api;

new Functions:

getSettings(token);
getSetting(token, JSONPath);
deleteSetting(token(, JSONPath));
setSetting(token(, JSONPath));
getCSRFToken(token);
deleteCSRFToken(CSRFToken);
getInfos(applicationID);

please note, that you need to set /login to the redirect url of your application

npm i reauth-express

NPM Package

Package Sidebar

Install

npm i reauth-express

Weekly Downloads

1

Version

1.1.2

License

ISC

Unpacked Size

9.07 kB

Total Files

10

Last publish

Collaborators

  • fishinghacks