Skip to content

FishingHacks/express-reauth

Repository files navigation

express-reauth

IMPORTANT

Re-Auth has been shut down. This package will no longer work. You can read more on our homepage. In case RedCrafter07 is going to release the sourcecode, it should work with your self-deployed api/website, after some personalizations (changing the urls)

It is confirmed, that RedCrafter07 didn't plan to release the source code

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published