altuari-lottery
Version:
Altuari Lottery Application
30 lines (29 loc) • 884 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
class Altuari {
/**
* @param name APPLICATION Name
*/
constructor(name) {
this.APPLICATION_NAME = name;
this.APPLICATION_TOKEN = '';
this.APPLICATION_LOTTERY_TYPE = '';
this.APPLICATION_AUTHENTICATED = false;
}
initializeApp(APPLICATION_TOKEN) {
const errors = {
notAllowed: false,
unrecognizedApp: false,
};
/** Check firestore APPLICATION name */
/** Check to see if APPLICATION is allowed to access type */
/** Check to make sure user added app */
if (!errors.unrecognizedApp && !errors.notAllowed) {
this.APPLICATION_AUTHENTICATED = true;
}
}
isAuthenticated() {
return this.APPLICATION_AUTHENTICATED;
}
}
exports.Altuari = Altuari;