UNPKG

tipi-services

Version:

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

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