oaux
v3.0.0
Published
OAux Authorization Module Professional Turbo
Downloads
3
Readme
const { sessionTokenManager, authorize } = require('./OAux v3.0');
const sessionToken = new sessionTokenManager();
sessionToken.create(ID, secret, token, accessToken);
sessionToken.refresh(accessToken, newSessionToken => {
console.log(newSessionToken);
});
sessionToken.refreshAuto(accessToken, 10000, newSessionToken => {
console.log(newSessionToken);
});
authorize(id, token, secret, accessToken, sessionToken, authorized => {
if (authorized === true) {
console.log('Accepted');
}
if (authorized === false) {
console.log('Rejected');
}
});