Skip to content

Instantly share code, notes, and snippets.

View olaoluwa-98's full-sized avatar
🏠
Working from home

Emmanuel Awotunde olaoluwa-98

🏠
Working from home
View GitHub Profile
@olaoluwa-98
olaoluwa-98 / Kwik.js
Created June 2, 2020 08:17
Kwik implementation
"use strict";
const KwikPackage = require("kwik-node");
const ThirdPartyException = require("../../exceptions/ThirdPartyException");
const KwikAPI = new KwikPackage(process.env.KWIK_DOMAIN_NAME, process.env.NODE_ENV == "production");
class Kwik {
static async getToken() {
let { body: res } = await KwikAPI.adminLogin({