UNPKG

tipi-services

Version:

Node.js library to access wrapping REST API of tipi backend services

18 lines (14 loc) 438 B
const Service = require('../../../Service') const Endpoints = require('./Endpoints') class AuthService extends Service { constructor (baseUrl) { super() this.endpoints = Endpoints(baseUrl) } async invalidateUser (data, accessToken) { return this.sendRequest({ endpoint: this.endpoints.invalidateUser, headers: { access_token: accessToken }, body: data }) } } module.exports = AuthService