Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@plusauth/plusauth-rest-js

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@plusauth/plusauth-rest-js - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

12

CHANGELOG.md

@@ -0,1 +1,13 @@

## [0.2.1](https://github.com/PlusAuth/plusauth-rest-js/compare/v0.2.0...v0.2.1) (2021-03-26)
### Bug Fixes
* cross env build fails ([5e47f63](https://github.com/PlusAuth/plusauth-rest-js/commit/5e47f6312ce5eba02b82673112bbb7d2c583fa9d))
### Features
* sms and email provider type enums ([90297b7](https://github.com/PlusAuth/plusauth-rest-js/commit/90297b711f6a6bbdf3675123f7063ffa4c8f6a06))
# [0.2.0](https://github.com/PlusAuth/plusauth-rest-js/compare/v0.1.2...v0.2.0) (2021-03-23)

@@ -2,0 +14,0 @@

78

dist/plusauth-rest-js.d.ts

@@ -245,2 +245,10 @@

declare enum EmailProvider {
'POSTMARK' = "postmark",
'SENDGRID' = "sendgrid",
'SPARKPOST' = "sparkpost",
'SMTP' = "smtp",
'AWS_SES' = "aws_ses"
}
/**

@@ -546,2 +554,3 @@ * @public

client_name: string;
[key: string]: any;
}

@@ -558,2 +567,8 @@

declare interface IEmailProviderSettings {
provider: EmailProvider;
settings: Record<string, string>;
from?: string;
}
/**

@@ -610,2 +625,7 @@ * @public

declare interface ISMSProviderSettings {
provider: SMSProvider;
settings: Record<string, string>;
}
/**

@@ -636,2 +656,4 @@ * @public

export declare interface ITenantSettings {
tokenEndpointAuthMethods?: string[];
whitelistedJWA?: Record<string, string[]>;
defaultStrategy: string;

@@ -641,11 +663,9 @@ autoSignIn?: boolean;

registerEnabled?: boolean;
welcomeEmailsEnabled?: boolean;
forceEmailVerification?: boolean;
hashFunction: string;
forgotPasswordEnabled?: boolean;
mfa: {
sms?: {
enabled: boolean;
};
};
email?: any;
exposeUnsafeErrors?: boolean;
extraScopes?: string[];
extraParams?: string[];
passwordPolicy: {

@@ -658,4 +678,9 @@ min?: number;

customChars?: string;
customRegexp?: string;
customRegexp?: {
value: string;
message?: string;
};
};
passwordHistory?: number;
social?: Record<string, any>;
ttl?: {

@@ -669,2 +694,20 @@ IdToken?: number;

};
protection: {
bruteForce: {
allowedAttempts: number;
blockDuration: number;
duration: number;
enabled: boolean;
notification: boolean;
whiteList: string[];
};
accountBlockingPolicy: {
allowedAttempts: number;
allowUserUnblock: boolean;
blockDuration: number;
duration: number;
notification: boolean;
resetAfterSuccess: boolean;
};
};
}

@@ -954,2 +997,8 @@

declare enum SMSProvider {
'TWILIO' = "twilio",
'NEXMO' = "nexmo",
'MESSAGEBIRD' = "messagebird"
}
/**

@@ -1095,13 +1144,6 @@ * @public

getStats(tenantId: string, pagination?: IPagination): Promise<any>;
getSMSProviderSettings(tenantId: string, provider?: string): Promise<any>;
updateSMSProviderSettings(tenantId: string, settings: {
provider: string;
settings: Record<string, string>;
}): Promise<any>;
getEmailProviderSettings(tenantId: string, provider?: string): Promise<any>;
updateEmailProviderSettings(tenantId: string, settings: {
provider: string;
from: string;
settings: Record<string, string>;
}): Promise<any>;
getSMSProviderSettings(tenantId: string, provider?: SMSProvider): Promise<ISMSProviderSettings>;
updateSMSProviderSettings(tenantId: string, settings: ISMSProviderSettings): Promise<ISMSProviderSettings>;
getEmailProviderSettings(tenantId: string, provider?: EmailProvider): Promise<IEmailProviderSettings>;
updateEmailProviderSettings(tenantId: string, settings: IEmailProviderSettings): Promise<IEmailProviderSettings>;
}

@@ -1108,0 +1150,0 @@

@@ -1,2 +0,2 @@

var PlusAuthRestClient=function(){"use strict";function t(t,e,i,n){return new(i||(i=Promise))((function(r,o){function s(t){try{h(n.next(t))}catch(t){o(t)}}function u(t){try{h(n.throw(t))}catch(t){o(t)}}function h(t){var e;t.done?r(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(s,u)}h((n=n.apply(t,e||[])).next())}))}var e=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===i}(t)}(t)};var i="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(t,e){return!1!==e.clone&&e.isMergeableObject(t)?h((i=t,Array.isArray(i)?[]:{}),t,e):t;var i}function r(t,e,i){return t.concat(e).map((function(t){return n(t,i)}))}function o(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return t.propertyIsEnumerable(e)})):[]}(t))}function s(t,e){try{return e in t}catch(t){return!1}}function u(t,e,i){var r={};return i.isMergeableObject(t)&&o(t).forEach((function(e){r[e]=n(t[e],i)})),o(e).forEach((function(o){(function(t,e){return s(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,o)||(s(t,o)&&i.isMergeableObject(e[o])?r[o]=function(t,e){if(!e.customMerge)return h;var i=e.customMerge(t);return"function"==typeof i?i:h}(o,i)(t[o],e[o],i):r[o]=n(e[o],i))})),r}function h(t,i,o){(o=o||{}).arrayMerge=o.arrayMerge||r,o.isMergeableObject=o.isMergeableObject||e,o.cloneUnlessOtherwiseSpecified=n;var s=Array.isArray(i);return s===Array.isArray(t)?s?o.arrayMerge(t,i,o):u(t,i,o):n(i,o)}h.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,i){return h(t,i,e)}),{})};var d=h;function c(t){if(t.__esModule)return t;var e=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(t).forEach((function(i){var n=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,n.get?n:{enumerable:!0,get:function(){return t[i]}})})),e}var p=c(Object.freeze({__proto__:null,default:function(t,e){return e=e||{},new Promise((function(i,n){var r=new XMLHttpRequest,o=[],s=[],u={},h=function(){return{ok:2==(r.status/100|0),statusText:r.statusText,status:r.status,url:r.responseURL,text:function(){return Promise.resolve(r.responseText)},json:function(){return Promise.resolve(JSON.parse(r.responseText))},blob:function(){return Promise.resolve(new Blob([r.response]))},clone:h,headers:{keys:function(){return o},entries:function(){return s},get:function(t){return u[t.toLowerCase()]},has:function(t){return t.toLowerCase()in u}}}};for(var d in r.open(e.method||"get",t,!0),r.onload=function(){r.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(t,e,i){o.push(e=e.toLowerCase()),s.push([e,i]),u[e]=u[e]?u[e]+","+i:i})),i(h())},r.onerror=n,r.withCredentials="include"==e.credentials,e.headers)r.setRequestHeader(d,e.headers[d]);r.send(e.body||null)}))}}));const v=window.fetch||(window.fetch=p.default||p);function a(e,i){var n;return t(this,void 0,void 0,(function*(){const t=e.headers.get("content-type");return"stream"===i.responseType?null===(n=e.body)||void 0===n?void 0:n.getReader():"json"===i.responseType||t&&t.indexOf("application/json")>-1?yield e.json():yield e.text()}))}function f(t,e){return new Promise((function(i,n){v(t,e).then((t=>{const r=t.clone();t.ok?a(r,e).then(i).catch(n):400===t.status?a(r,e).then((t=>{if("xhr_request"===t.error&&t.location)return window.location.replace(t.location),!1;n(t)})).catch(n):a(r,e).then(n).catch(n)})).catch(n)}))}class l{constructor(t,e={}){if(!t)throw new Error("'apiURL' must be provided");try{new URL(t)}catch(t){throw new Error("'apiUrl' must be a valid uri")}if("object"!=typeof e)throw new Error("'options' must be an object");if(e.httpClient&&"function"!=typeof e.httpClient)throw new Error('"httpClient" must be function');const i=t+(/\/api\/v\d(\/)?$/.test(t)?"":(t.endsWith("/")?"":"/")+"api/v1")+this.constructor.prefix,n=e.httpClient||f,r={};["get","post","patch","delete"].forEach((t=>{r[t]=function(...r){let o;o=e&&"function"==typeof e.token?e.token.call(void 0):e.token;let s={method:t.toUpperCase(),mode:"cors",headers:Object.assign({Accept:"application/json","Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},o?{Authorization:`Bearer ${o}`}:{})};return r.length>1&&"get"!==t&&(s.body="object"==typeof r[1]?JSON.stringify(r[1]):r[1]),r[2]&&"object"==typeof r[2]&&(s=d(s,r[2])),n.call(null,i+r[0],s)}})),this._baseUrl=i,this.http=r}}function g(t,e=!0){if(!t)return"";const i=[];for(const e in t)null!=t[e]&&i.push(`${encodeURIComponent(e)}=${t[e].toString()}`);return e?`?${i.join("&")}`:i.join("&")}l.prefix="";class $ extends l{getAll(e){return t(this,void 0,void 0,(function*(){return this.http.get(g(e))}))}get(e){return t(this,void 0,void 0,(function*(){return this.http.get(`/${e}`)}))}create(e){return t(this,void 0,void 0,(function*(){return this.http.post("",e)}))}update(e,i){return t(this,void 0,void 0,(function*(){return this.http.patch(`/${e}`,i)}))}remove(e){return t(this,void 0,void 0,(function*(){return this.http.delete(`/${e}`)}))}getPermissions(e,i){return t(this,void 0,void 0,(function*(){return this.http.get(`/${e}/permissions${g(i)}`)}))}createPermission(e,i){return t(this,void 0,void 0,(function*(){return this.http.post(`/${e}/permissions`,i)}))}removePermission(e,i){return t(this,void 0,void 0,(function*(){return this.http.delete(`/${e}/permissions/${i}`)}))}getAuthorizedClients(e,i){return t(this,void 0,void 0,(function*(){return this.http.get(`/${e}/authorized_clients${g(i)}`)}))}authorizeClients(e,i){return t(this,void 0,void 0,(function*(){return this.http.post(`/${e}/authorized_clients`,i)}))}unAuthorizeClients(e,i){return t(this,void 0,void 0,(function*(){return this.http.delete(`/${e}/authorized_clients`,i)}))}getAssignedPermissionsToClient(e,i){return t(this,void 0,void 0,(function*(){return this.http.get(`/${e}/authorized_clients/${i}/permissions`)}))}assignPermissionsToClient(e,i,n){return t(this,void 0,void 0,(function*(){return this.http.post(`/${e}/authorized_clients/${i}/permissions`,n)}))}unassignPermissionsFromClient(e,i,n){return t(this,void 0,void 0,(function*(){return this.http.delete(`/${e}/authorized_clients/${i}/permissions`,n)}))}}$.prefix="/apis";class m extends l{getAll(e){return t(this,void 0,void 0,(function*(){return this.http.get(g(e))}))}get(e){return t(this,void 0,void 0,(function*(){return this.http.get(`/${e}`)}))}create(e){return t(this,void 0,void 0,(function*(){return this.http.post("",e)}))}update(e,i){return t(this,void 0,void 0,(function*(){return this.http.patch(`/${e}`,i)}))}remove(e){return t(this,void 0,void 0,(function*(){return this.http.delete(`/${e}`)}))}}m.prefix="/clients";class y extends l{getAll(e){return t(this,void 0,void 0,(function*(){return this.http.get(g(e))}))}get(e){return t(this,void 0,void 0,(function*(){return this.http.get(`/${e}`)}))}create(e){return t(this,void 0,void 0,(function*(){return this.http.post("",e)}))}update(e,i){return t(this,void 0,void 0,(function*(){return this.http.patch(`/${e}`,i)}))}remove(e){return t(this,void 0,void 0,(function*(){return this.http.delete(`/${e}`)}))}validate(e){return t(this,void 0,void 0,(function*(){return this.http.get(`/${e}/validate`)}))}}y.prefix="/custom-domain";class b extends l{getAll(e){return t(this,void 0,void 0,(function*(){return this.http.get(g(e))}))}get(e){return t(this,void 0,void 0,(function*(){return this.http.get(`/${e}`)}))}create(e){return t(this,void 0,void 0,(function*(){return this.http.post("",e)}))}update(e,i){return t(this,void 0,void 0,(function*(){return this.http.patch(`/${e}`,i)}))}remove(e){return t(this,void 0,void 0,(function*(){return this.http.delete(`/${e}`)}))}}b.prefix="/federated";class w extends l{getAll(e){return t(this,void 0,void 0,(function*(){return this.http.get(`${g(e)}`)}))}get(e){return t(this,void 0,void 0,(function*(){return this.http.get(`/${e}`)}))}create(e){return t(this,void 0,void 0,(function*(){return this.http.post("",e)}))}update(e,i){return t(this,void 0,void 0,(function*(){return this.http.patch(""+(e?`/${e}`:""),i)}))}remove(e){return t(this,void 0,void 0,(function*(){return this.http.delete(`/${e}`)}))}addPackages(e,i,n=!1){return t(this,void 0,void 0,(function*(){return this.http.post(`/${e}/packages`,i,{responseType:n?"stream":void 0})}))}deletePackages(e,i,n=!1){return t(this,void 0,void 0,(function*(){return this.http.delete(`/${e}/packages`,i,{responseType:n?"stream":void 0})}))}execute(t,e,i){return this.http.post("/hook-test",{context:t,user:e,hook:i})}}w.prefix="/hooks";class x extends l{getAll(e,i){return t(this,void 0,void 0,(function*(){return i&&"object"==typeof i&&(i=JSON.stringify(i)),this.http.get(g(Object.assign(Object.assign({},e),{query:i})))}))}}x.prefix="/logs";class j extends l{getAll(){return t(this,void 0,void 0,(function*(){return this.http.get("")}))}get(e){return t(this,void 0,void 0,(function*(){return this.http.get(`/${e}`)}))}update(e,i){return t(this,void 0,void 0,(function*(){return this.http.patch(`/${e}`,i)}))}}j.prefix="/mfa";class A extends l{getAll(e){return t(this,void 0,void 0,(function*(){return this.http.get(g(e))}))}get(e){return t(this,void 0,void 0,(function*(){return this.http.get(`/${e}`)}))}create(e){return t(this,void 0,void 0,(function*(){return this.http.post("",e)}))}update(e,i){return t(this,void 0,void 0,(function*(){return this.http.patch(`/${e}`,i)}))}remove(e){return t(this,void 0,void 0,(function*(){return this.http.delete(`/${e}`)}))}getRoles(e,i){return t(this,void 0,void 0,(function*(){return this.http.get(`/${e}/roles${g(i)}`)}))}assignRoles(e,i){return t(this,void 0,void 0,(function*(){return this.http.post(`/${e}/roles`,i)}))}unAssignRoles(e,i){return t(this,void 0,void 0,(function*(){return this.http.delete(`/${e}/roles/${i}`)}))}}A.prefix="/roleGroups";class P extends l{getAll(e){return t(this,void 0,void 0,(function*(){return this.http.get(g(e))}))}get(e){return t(this,void 0,void 0,(function*(){return this.http.get(`/${e}`)}))}create(e){return t(this,void 0,void 0,(function*(){return this.http.post("",e)}))}update(e,i){return t(this,void 0,void 0,(function*(){return this.http.patch(`/${e}`,i)}))}remove(e){return t(this,void 0,void 0,(function*(){return this.http.delete(`/${e}`)}))}getPermissions(e,i){return t(this,void 0,void 0,(function*(){return this.http.get(`/${e}/permissions${g(i)}`)}))}assignPermissions(e,i){return t(this,void 0,void 0,(function*(){return this.http.post(`/${e}/permissions`,i)}))}unAssignPermissions(e,i){return t(this,void 0,void 0,(function*(){return this.http.delete(`/${e}/permissions/${i}`)}))}}P.prefix="/roles";class O extends l{get(e,i){return t(this,void 0,void 0,(function*(){return this.http.get(`/${e}/${i}`)}))}update(e,i,n){return t(this,void 0,void 0,(function*(){return this.http.patch(`/${e}/${i}`,n)}))}}O.prefix="/templates";class S extends l{getAll(e){return t(this,void 0,void 0,(function*(){return this.http.get(`${g(e)}`)}))}create(e){return t(this,void 0,void 0,(function*(){return this.http.post("",e,{headers:{"X-PlusAuth-Tenant":"api"}})}))}delete(e){return t(this,void 0,void 0,(function*(){return this.http.delete(`/${e}`)}))}getSettings(e){return t(this,void 0,void 0,(function*(){return this.http.get(`/${e}/settings`)}))}updateSettings(e,i){return t(this,void 0,void 0,(function*(){return this.http.patch(`/${e}/settings`,i)}))}inviteAdmin(e,i){return t(this,void 0,void 0,(function*(){return this.http.post(`/${e}/invite`,{email:i})}))}getAdministrators(e){return t(this,void 0,void 0,(function*(){return this.http.get(`/${e}/administrators`)}))}removeAdministrator(e,i){return t(this,void 0,void 0,(function*(){return this.http.delete(`/${e}/administrators/${i}`)}))}getStats(e,i){return t(this,void 0,void 0,(function*(){return this.http.get(`/${e}/stats${g(i)}`)}))}getSMSProviderSettings(e,i){return t(this,void 0,void 0,(function*(){return this.http.get(`/${e}/provider/sms${i?`/${i}`:""}`)}))}updateSMSProviderSettings(e,i){return t(this,void 0,void 0,(function*(){return this.http.patch(`/${e}/provider/sms`,i)}))}getEmailProviderSettings(e,i){return t(this,void 0,void 0,(function*(){return this.http.get(`/${e}/provider/email${i?`/${i}`:""}`)}))}updateEmailProviderSettings(e,i){return t(this,void 0,void 0,(function*(){return this.http.patch(`/${e}/provider/sms`,i)}))}}S.prefix="/tenants";class R extends l{getAll(e){return t(this,void 0,void 0,(function*(){return this.http.get(g(e))}))}get(e){return t(this,void 0,void 0,(function*(){return this.http.get(`/${e}`)}))}getSessions(e){return t(this,void 0,void 0,(function*(){return this.http.get(`/${e}/session`)}))}endSession(e,i){return t(this,void 0,void 0,(function*(){return this.http.delete(`/${e}/session/${i}`)}))}create(e){return t(this,void 0,void 0,(function*(){return this.http.post("",e)}))}remove(e){return t(this,void 0,void 0,(function*(){return this.http.delete(`/${e}`)}))}update(e,i){return t(this,void 0,void 0,(function*(){return this.http.patch(`/${e}`,i)}))}getTenants(e){return t(this,void 0,void 0,(function*(){return this.http.get(`/${e}/tenants`)}))}getRoleGroups(e){return t(this,void 0,void 0,(function*(){return this.http.get(`/${e}/roleGroups`)}))}assignRoleGroups(e,i){return t(this,void 0,void 0,(function*(){return this.http.post(`/${e}/roleGroups`,i)}))}unAssignRoleGroups(e,i){return t(this,void 0,void 0,(function*(){return this.http.delete(`/${e}/roleGroups`,i)}))}getRoles(e){return t(this,void 0,void 0,(function*(){return this.http.get(`/${e}/roles`)}))}assignRoles(e,i){return t(this,void 0,void 0,(function*(){return this.http.post(`/${e}/roles`,i)}))}unAssignRoles(e,i){return t(this,void 0,void 0,(function*(){return this.http.delete(`/${e}/roles`,i)}))}getPermissions(e){return t(this,void 0,void 0,(function*(){return this.http.get(`/${e}/permissions`)}))}assignPermissions(e,i){return t(this,void 0,void 0,(function*(){return this.http.post(`/${e}/permissions`,i)}))}unAssignPermissions(e,i){return t(this,void 0,void 0,(function*(){return this.http.delete(`/${e}/permissions`,i)}))}}R.prefix="/users";class C extends l{get(e){return t(this,void 0,void 0,(function*(){return this.http.get(`/${e}`)}))}update(e,i){return t(this,void 0,void 0,(function*(){return this.http.patch(`/${e}`,i,{headers:{"Content-Type":"text/plain"}})}))}}C.prefix="/views";return class{constructor(t,e={}){this.options=e,this.apis=new $(t,this.options),this.clients=new m(t,this.options),this.customDomains=new y(t,this.options),this.federated=new b(t,this.options),this.hooks=new w(t,this.options),this.logs=new x(t,this.options),this.mfa=new j(t,this.options),this.roleGroups=new A(t,this.options),this.roles=new P(t,this.options),this.templates=new O(t,this.options),this.tenants=new S(t,this.options),this.users=new R(t,this.options),this.views=new C(t,this.options)}}}();
var PlusAuthRestClient=function(){"use strict";function t(t,e,r,i){return new(r||(r=Promise))((function(n,o){function s(t){try{h(i.next(t))}catch(t){o(t)}}function u(t){try{h(i.throw(t))}catch(t){o(t)}}function h(t){var e;t.done?n(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,u)}h((i=i.apply(t,e||[])).next())}))}var e=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===r}(t)}(t)};var r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(t,e){return!1!==e.clone&&e.isMergeableObject(t)?h((r=t,Array.isArray(r)?[]:{}),t,e):t;var r}function n(t,e,r){return t.concat(e).map((function(t){return i(t,r)}))}function o(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return t.propertyIsEnumerable(e)})):[]}(t))}function s(t,e){try{return e in t}catch(t){return!1}}function u(t,e,r){var n={};return r.isMergeableObject(t)&&o(t).forEach((function(e){n[e]=i(t[e],r)})),o(e).forEach((function(o){(function(t,e){return s(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,o)||(s(t,o)&&r.isMergeableObject(e[o])?n[o]=function(t,e){if(!e.customMerge)return h;var r=e.customMerge(t);return"function"==typeof r?r:h}(o,r)(t[o],e[o],r):n[o]=i(e[o],r))})),n}function h(t,r,o){(o=o||{}).arrayMerge=o.arrayMerge||n,o.isMergeableObject=o.isMergeableObject||e,o.cloneUnlessOtherwiseSpecified=i;var s=Array.isArray(r);return s===Array.isArray(t)?s?o.arrayMerge(t,r,o):u(t,r,o):i(r,o)}h.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,r){return h(t,r,e)}),{})};var a,d=h,c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function p(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}const f=p((function(t,e){var r="undefined"!=typeof self?self:c,i=function(){function t(){this.fetch=!1,this.DOMException=r.DOMException}return t.prototype=r,new t}();!function(t){!function(e){var r="URLSearchParams"in t,i="Symbol"in t&&"iterator"in Symbol,n="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),o="FormData"in t,s="ArrayBuffer"in t;if(s)var u=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],h=ArrayBuffer.isView||function(t){return t&&u.indexOf(Object.prototype.toString.call(t))>-1};function a(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function d(t){return"string"!=typeof t&&(t=String(t)),t}function c(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return i&&(e[Symbol.iterator]=function(){return e}),e}function p(t){this.map={},t instanceof p?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function f(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function l(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function v(t){var e=new FileReader,r=l(e);return e.readAsArrayBuffer(t),r}function y(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function g(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:n&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:r&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():s&&n&&(e=t)&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=y(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(t)||h(t))?this._bodyArrayBuffer=y(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n&&(this.blob=function(){var t=f(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?f(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(v)}),this.text=function(){var t,e,r,i=f(this);if(i)return i;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,r=l(e),e.readAsText(t),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),i=0;i<e.length;i++)r[i]=String.fromCharCode(e[i]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o&&(this.formData=function(){return this.text().then($)}),this.json=function(){return this.text().then(JSON.parse)},this}p.prototype.append=function(t,e){t=a(t),e=d(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},p.prototype.delete=function(t){delete this.map[a(t)]},p.prototype.get=function(t){return t=a(t),this.has(t)?this.map[t]:null},p.prototype.has=function(t){return this.map.hasOwnProperty(a(t))},p.prototype.set=function(t,e){this.map[a(t)]=d(e)},p.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},p.prototype.keys=function(){var t=[];return this.forEach((function(e,r){t.push(r)})),c(t)},p.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),c(t)},p.prototype.entries=function(){var t=[];return this.forEach((function(e,r){t.push([r,e])})),c(t)},i&&(p.prototype[Symbol.iterator]=p.prototype.entries);var m=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function b(t,e){var r,i,n=(e=e||{}).body;if(t instanceof b){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new p(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,n||null==t._bodyInit||(n=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new p(e.headers)),this.method=(r=e.method||this.method||"GET",i=r.toUpperCase(),m.indexOf(i)>-1?i:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function $(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var r=t.split("="),i=r.shift().replace(/\+/g," "),n=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(i),decodeURIComponent(n))}})),e}function w(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new p(e.headers),this.url=e.url||"",this._initBody(t)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},g.call(b.prototype),g.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},w.error=function(){var t=new w(null,{status:0,statusText:""});return t.type="error",t};var x=[301,302,303,307,308];w.redirect=function(t,e){if(-1===x.indexOf(e))throw new RangeError("Invalid status code");return new w(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function A(t,r){return new Promise((function(i,o){var s=new b(t,r);if(s.signal&&s.signal.aborted)return o(new e.DOMException("Aborted","AbortError"));var u=new XMLHttpRequest;function h(){u.abort()}u.onload=function(){var t,e,r={status:u.status,statusText:u.statusText,headers:(t=u.getAllResponseHeaders()||"",e=new p,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var r=t.split(":"),i=r.shift().trim();if(i){var n=r.join(":").trim();e.append(i,n)}})),e)};r.url="responseURL"in u?u.responseURL:r.headers.get("X-Request-URL");var n="response"in u?u.response:u.responseText;i(new w(n,r))},u.onerror=function(){o(new TypeError("Network request failed"))},u.ontimeout=function(){o(new TypeError("Network request failed"))},u.onabort=function(){o(new e.DOMException("Aborted","AbortError"))},u.open(s.method,s.url,!0),"include"===s.credentials?u.withCredentials=!0:"omit"===s.credentials&&(u.withCredentials=!1),"responseType"in u&&n&&(u.responseType="blob"),s.headers.forEach((function(t,e){u.setRequestHeader(e,t)})),s.signal&&(s.signal.addEventListener("abort",h),u.onreadystatechange=function(){4===u.readyState&&s.signal.removeEventListener("abort",h)}),u.send(void 0===s._bodyInit?null:s._bodyInit)}))}A.polyfill=!0,t.fetch||(t.fetch=A,t.Headers=p,t.Request=b,t.Response=w),e.Headers=p,e.Request=b,e.Response=w,e.fetch=A,Object.defineProperty(e,"__esModule",{value:!0})}({})}(i),i.fetch.ponyfill=!0,delete i.fetch.polyfill;var n=i;(e=n.fetch).default=n.fetch,e.fetch=n.fetch,e.Headers=n.Headers,e.Request=n.Request,e.Response=n.Response,t.exports=e}(a={exports:{}},a.exports),a.exports));function l(e,r){var i;return t(this,void 0,void 0,(function*(){const t=e.headers.get("content-type");return"stream"===r.responseType?null===(i=e.body)||void 0===i?void 0:i.getReader():"json"===r.responseType||t&&t.indexOf("application/json")>-1?yield e.json():yield e.text()}))}function v(t,e){return new Promise((function(r,i){f(t,e).then((t=>{const n=t.clone();t.ok?l(n,e).then(r).catch(i):400===t.status?l(n,e).then((t=>{if("xhr_request"===t.error&&t.location)return window.location.replace(t.location),!1;i(t)})).catch(i):l(n,e).then(i).catch(i)})).catch(i)}))}class y{constructor(t,e={}){if(!t)throw new Error("'apiURL' must be provided");try{new URL(t)}catch(t){throw new Error("'apiUrl' must be a valid uri")}if("object"!=typeof e)throw new Error("'options' must be an object");if(e.httpClient&&"function"!=typeof e.httpClient)throw new Error('"httpClient" must be function');const r=t+(/\/api\/v\d(\/)?$/.test(t)?"":(t.endsWith("/")?"":"/")+"api/v1")+this.constructor.prefix,i=e.httpClient||v,n={};["get","post","patch","delete"].forEach((t=>{n[t]=function(...n){let o;o=e&&"function"==typeof e.token?e.token.call(void 0):e.token;let s={method:t.toUpperCase(),mode:"cors",headers:Object.assign({Accept:"application/json","Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},o?{Authorization:`Bearer ${o}`}:{})};return n.length>1&&"get"!==t&&(s.body="object"==typeof n[1]?JSON.stringify(n[1]):n[1]),n[2]&&"object"==typeof n[2]&&(s=d(s,n[2])),i.call(null,r+n[0],s)}})),this._baseUrl=r,this.http=n}}function g(t,e=!0){if(!t)return"";const r=[];for(const e in t)null!=t[e]&&r.push(`${encodeURIComponent(e)}=${t[e].toString()}`);return e?`?${r.join("&")}`:r.join("&")}y.prefix="";class m extends y{getAll(e){return t(this,void 0,void 0,(function*(){return this.http.get(g(e))}))}get(e){return t(this,void 0,void 0,(function*(){return this.http.get(`/${e}`)}))}create(e){return t(this,void 0,void 0,(function*(){return this.http.post("",e)}))}update(e,r){return t(this,void 0,void 0,(function*(){return this.http.patch(`/${e}`,r)}))}remove(e){return t(this,void 0,void 0,(function*(){return this.http.delete(`/${e}`)}))}getPermissions(e,r){return t(this,void 0,void 0,(function*(){return this.http.get(`/${e}/permissions${g(r)}`)}))}createPermission(e,r){return t(this,void 0,void 0,(function*(){return this.http.post(`/${e}/permissions`,r)}))}removePermission(e,r){return t(this,void 0,void 0,(function*(){return this.http.delete(`/${e}/permissions/${r}`)}))}getAuthorizedClients(e,r){return t(this,void 0,void 0,(function*(){return this.http.get(`/${e}/authorized_clients${g(r)}`)}))}authorizeClients(e,r){return t(this,void 0,void 0,(function*(){return this.http.post(`/${e}/authorized_clients`,r)}))}unAuthorizeClients(e,r){return t(this,void 0,void 0,(function*(){return this.http.delete(`/${e}/authorized_clients`,r)}))}getAssignedPermissionsToClient(e,r){return t(this,void 0,void 0,(function*(){return this.http.get(`/${e}/authorized_clients/${r}/permissions`)}))}assignPermissionsToClient(e,r,i){return t(this,void 0,void 0,(function*(){return this.http.post(`/${e}/authorized_clients/${r}/permissions`,i)}))}unassignPermissionsFromClient(e,r,i){return t(this,void 0,void 0,(function*(){return this.http.delete(`/${e}/authorized_clients/${r}/permissions`,i)}))}}m.prefix="/apis";class b extends y{getAll(e){return t(this,void 0,void 0,(function*(){return this.http.get(g(e))}))}get(e){return t(this,void 0,void 0,(function*(){return this.http.get(`/${e}`)}))}create(e){return t(this,void 0,void 0,(function*(){return this.http.post("",e)}))}update(e,r){return t(this,void 0,void 0,(function*(){return this.http.patch(`/${e}`,r)}))}remove(e){return t(this,void 0,void 0,(function*(){return this.http.delete(`/${e}`)}))}}b.prefix="/clients";class $ extends y{getAll(e){return t(this,void 0,void 0,(function*(){return this.http.get(g(e))}))}get(e){return t(this,void 0,void 0,(function*(){return this.http.get(`/${e}`)}))}create(e){return t(this,void 0,void 0,(function*(){return this.http.post("",e)}))}update(e,r){return t(this,void 0,void 0,(function*(){return this.http.patch(`/${e}`,r)}))}remove(e){return t(this,void 0,void 0,(function*(){return this.http.delete(`/${e}`)}))}validate(e){return t(this,void 0,void 0,(function*(){return this.http.get(`/${e}/validate`)}))}}$.prefix="/custom-domain";class w extends y{getAll(e){return t(this,void 0,void 0,(function*(){return this.http.get(g(e))}))}get(e){return t(this,void 0,void 0,(function*(){return this.http.get(`/${e}`)}))}create(e){return t(this,void 0,void 0,(function*(){return this.http.post("",e)}))}update(e,r){return t(this,void 0,void 0,(function*(){return this.http.patch(`/${e}`,r)}))}remove(e){return t(this,void 0,void 0,(function*(){return this.http.delete(`/${e}`)}))}}w.prefix="/federated";class x extends y{getAll(e){return t(this,void 0,void 0,(function*(){return this.http.get(`${g(e)}`)}))}get(e){return t(this,void 0,void 0,(function*(){return this.http.get(`/${e}`)}))}create(e){return t(this,void 0,void 0,(function*(){return this.http.post("",e)}))}update(e,r){return t(this,void 0,void 0,(function*(){return this.http.patch(""+(e?`/${e}`:""),r)}))}remove(e){return t(this,void 0,void 0,(function*(){return this.http.delete(`/${e}`)}))}addPackages(e,r,i=!1){return t(this,void 0,void 0,(function*(){return this.http.post(`/${e}/packages`,r,{responseType:i?"stream":void 0})}))}deletePackages(e,r,i=!1){return t(this,void 0,void 0,(function*(){return this.http.delete(`/${e}/packages`,r,{responseType:i?"stream":void 0})}))}execute(t,e,r){return this.http.post("/hook-test",{context:t,user:e,hook:r})}}x.prefix="/hooks";class A extends y{getAll(e,r){return t(this,void 0,void 0,(function*(){return r&&"object"==typeof r&&(r=JSON.stringify(r)),this.http.get(g(Object.assign(Object.assign({},e),{query:r})))}))}}A.prefix="/logs";class E extends y{getAll(){return t(this,void 0,void 0,(function*(){return this.http.get("")}))}get(e){return t(this,void 0,void 0,(function*(){return this.http.get(`/${e}`)}))}update(e,r){return t(this,void 0,void 0,(function*(){return this.http.patch(`/${e}`,r)}))}}E.prefix="/mfa";class O extends y{getAll(e){return t(this,void 0,void 0,(function*(){return this.http.get(g(e))}))}get(e){return t(this,void 0,void 0,(function*(){return this.http.get(`/${e}`)}))}create(e){return t(this,void 0,void 0,(function*(){return this.http.post("",e)}))}update(e,r){return t(this,void 0,void 0,(function*(){return this.http.patch(`/${e}`,r)}))}remove(e){return t(this,void 0,void 0,(function*(){return this.http.delete(`/${e}`)}))}getRoles(e,r){return t(this,void 0,void 0,(function*(){return this.http.get(`/${e}/roles${g(r)}`)}))}assignRoles(e,r){return t(this,void 0,void 0,(function*(){return this.http.post(`/${e}/roles`,r)}))}unAssignRoles(e,r){return t(this,void 0,void 0,(function*(){return this.http.delete(`/${e}/roles/${r}`)}))}}O.prefix="/roleGroups";class P extends y{getAll(e){return t(this,void 0,void 0,(function*(){return this.http.get(g(e))}))}get(e){return t(this,void 0,void 0,(function*(){return this.http.get(`/${e}`)}))}create(e){return t(this,void 0,void 0,(function*(){return this.http.post("",e)}))}update(e,r){return t(this,void 0,void 0,(function*(){return this.http.patch(`/${e}`,r)}))}remove(e){return t(this,void 0,void 0,(function*(){return this.http.delete(`/${e}`)}))}getPermissions(e,r){return t(this,void 0,void 0,(function*(){return this.http.get(`/${e}/permissions${g(r)}`)}))}assignPermissions(e,r){return t(this,void 0,void 0,(function*(){return this.http.post(`/${e}/permissions`,r)}))}unAssignPermissions(e,r){return t(this,void 0,void 0,(function*(){return this.http.delete(`/${e}/permissions/${r}`)}))}}P.prefix="/roles";class _ extends y{get(e,r){return t(this,void 0,void 0,(function*(){return this.http.get(`/${e}/${r}`)}))}update(e,r,i){return t(this,void 0,void 0,(function*(){return this.http.patch(`/${e}/${r}`,i)}))}}_.prefix="/templates";class j extends y{getAll(e){return t(this,void 0,void 0,(function*(){return this.http.get(`${g(e)}`)}))}create(e){return t(this,void 0,void 0,(function*(){return this.http.post("",e,{headers:{"X-PlusAuth-Tenant":"api"}})}))}delete(e){return t(this,void 0,void 0,(function*(){return this.http.delete(`/${e}`)}))}getSettings(e){return t(this,void 0,void 0,(function*(){return this.http.get(`/${e}/settings`)}))}updateSettings(e,r){return t(this,void 0,void 0,(function*(){return this.http.patch(`/${e}/settings`,r)}))}inviteAdmin(e,r){return t(this,void 0,void 0,(function*(){return this.http.post(`/${e}/invite`,{email:r})}))}getAdministrators(e){return t(this,void 0,void 0,(function*(){return this.http.get(`/${e}/administrators`)}))}removeAdministrator(e,r){return t(this,void 0,void 0,(function*(){return this.http.delete(`/${e}/administrators/${r}`)}))}getStats(e,r){return t(this,void 0,void 0,(function*(){return this.http.get(`/${e}/stats${g(r)}`)}))}getSMSProviderSettings(e,r){return t(this,void 0,void 0,(function*(){return this.http.get(`/${e}/provider/sms${r?`/${r}`:""}`)}))}updateSMSProviderSettings(e,r){return t(this,void 0,void 0,(function*(){return this.http.patch(`/${e}/provider/sms`,r)}))}getEmailProviderSettings(e,r){return t(this,void 0,void 0,(function*(){return this.http.get(`/${e}/provider/email${r?`/${r}`:""}`)}))}updateEmailProviderSettings(e,r){return t(this,void 0,void 0,(function*(){return this.http.patch(`/${e}/provider/sms`,r)}))}}j.prefix="/tenants";class T extends y{getAll(e){return t(this,void 0,void 0,(function*(){return this.http.get(g(e))}))}get(e){return t(this,void 0,void 0,(function*(){return this.http.get(`/${e}`)}))}getSessions(e){return t(this,void 0,void 0,(function*(){return this.http.get(`/${e}/session`)}))}endSession(e,r){return t(this,void 0,void 0,(function*(){return this.http.delete(`/${e}/session/${r}`)}))}create(e){return t(this,void 0,void 0,(function*(){return this.http.post("",e)}))}remove(e){return t(this,void 0,void 0,(function*(){return this.http.delete(`/${e}`)}))}update(e,r){return t(this,void 0,void 0,(function*(){return this.http.patch(`/${e}`,r)}))}getTenants(e){return t(this,void 0,void 0,(function*(){return this.http.get(`/${e}/tenants`)}))}getRoleGroups(e){return t(this,void 0,void 0,(function*(){return this.http.get(`/${e}/roleGroups`)}))}assignRoleGroups(e,r){return t(this,void 0,void 0,(function*(){return this.http.post(`/${e}/roleGroups`,r)}))}unAssignRoleGroups(e,r){return t(this,void 0,void 0,(function*(){return this.http.delete(`/${e}/roleGroups`,r)}))}getRoles(e){return t(this,void 0,void 0,(function*(){return this.http.get(`/${e}/roles`)}))}assignRoles(e,r){return t(this,void 0,void 0,(function*(){return this.http.post(`/${e}/roles`,r)}))}unAssignRoles(e,r){return t(this,void 0,void 0,(function*(){return this.http.delete(`/${e}/roles`,r)}))}getPermissions(e){return t(this,void 0,void 0,(function*(){return this.http.get(`/${e}/permissions`)}))}assignPermissions(e,r){return t(this,void 0,void 0,(function*(){return this.http.post(`/${e}/permissions`,r)}))}unAssignPermissions(e,r){return t(this,void 0,void 0,(function*(){return this.http.delete(`/${e}/permissions`,r)}))}}T.prefix="/users";class R extends y{get(e){return t(this,void 0,void 0,(function*(){return this.http.get(`/${e}`)}))}update(e,r){return t(this,void 0,void 0,(function*(){return this.http.patch(`/${e}`,r,{headers:{"Content-Type":"text/plain"}})}))}}R.prefix="/views";return class{constructor(t,e={}){this.options=e,this.apis=new m(t,this.options),this.clients=new b(t,this.options),this.customDomains=new $(t,this.options),this.federated=new w(t,this.options),this.hooks=new x(t,this.options),this.logs=new A(t,this.options),this.mfa=new E(t,this.options),this.roleGroups=new O(t,this.options),this.roles=new P(t,this.options),this.templates=new _(t,this.options),this.tenants=new j(t,this.options),this.users=new T(t,this.options),this.views=new R(t,this.options)}}}();
//# sourceMappingURL=plusauth-rest-js.min.js.map
{
"name": "@plusauth/plusauth-rest-js",
"version": "0.2.0",
"version": "0.2.1",
"description": "PlusAuth JavaScript Rest Client",

@@ -9,8 +9,2 @@ "main": "dist/plusauth-rest-js.cjs.js",

"types": "dist/plusauth-rest-js.d.ts",
"exports": {
"import": "dist/plusauth-rest-js.esm.js",
"require": "dist/plusauth-rest-js.cjs.js",
"node": "dist/plusauth-rest-js.cjs.js",
"default": "dist/plusauth-rest-js.esm.js"
},
"files": [

@@ -33,3 +27,3 @@ "dist"

"deepmerge": "^4.2.2",
"isomorphic-unfetch": "^3.0.0"
"cross-fetch": "^3.1.2"
},

@@ -36,0 +30,0 @@ "devDependencies": {

@@ -11,7 +11,7 @@ # @plusauth/plusauth-rest-js

## Installation
# Installation
From PlusAuth CDN:
```html
<!-- Latest release -->
<script src="https://unpkg.com/@plusauth/plusauth-rest-js@0.0.2/dist/plusauth-rest-js.min.js"></script>
<script src="https://unpkg.com/@plusauth/plusauth-rest-js@0.2.0/dist/plusauth-rest-js.min.js"></script>
```

@@ -68,4 +68,18 @@

## Custom HTTP Client
You may provide your own http client to the library when you need to have more control over your requests.
```js
const axios = require('axios')
const plusAuth = new PlusAuthRestClient('https://<YOUR_TENANT_ID>.plusauth.com', {
httpClient: function (url, options) {
options.url = url
options.data = options.body
return axios(options)
}
})
```
# Docs
For API docs visit [here](https://plusauth.github.io/plusauth-rest-js/classes/plusauthrestclient.html)

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc