ggez-banking-sdk
Version:
A Node.js package to handle GGEZ Banking API endpoints, Simplify the process of managing CRUD operations with this efficient and easy-to-use package.
20 lines (19 loc) • 524 B
JavaScript
import { Endpoints } from "../../constant/constant";
import { BaseService } from "./baseService";
class AuthService extends BaseService {
endpoint = Endpoints.Auth;
constructor(data) {
super(data);
}
// #region "POST"
login(data) {
const url = this.resolveURL();
return this.POST(url, data);
}
generateLimitedToken(data) {
return this.POST("/token/limited-token", data, {
baseURL: this.context.getNodeUrl(),
});
}
}
export { AuthService };