@frontegg/rest-api 3.0.25 → 3.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -90,3 +90,7 @@ export declare function deleteIPRestriction(id: string): Promise<void>;
|
|
|
90
90
|
* Test current user ip restriction
|
|
91
91
|
*/
|
|
92
92
|
export declare function testCurrentIp(): Promise<IPValidResponse>;
|
|
93
|
+
/**
|
|
94
|
+
* Test current user ip restriction is in allow list
|
|
95
|
+
*/
|
|
96
|
+
export declare function testCurrentIpInAllowList(): Promise<IPValidResponse>;
|
|
@@ -81,4 +81,7 @@ export async function deleteIPRestriction(id) {
|
|
|
81
81
|
}
|
|
82
82
|
export async function testCurrentIp() {
|
|
83
83
|
return Post(`${urls.identity.restrictions.ip.v1}/verify`);
|
|
84
|
+
}
|
|
85
|
+
export async function testCurrentIpInAllowList() {
|
|
86
|
+
return Post(`${urls.identity.restrictions.ip.v1}/verify/allow`);
|
|
84
87
|
}
|
package/index.js
CHANGED
|
@@ -23,6 +23,7 @@ exports.saveLockoutPolicy = saveLockoutPolicy;
|
|
|
23
23
|
exports.saveMfaPolicy = saveMfaPolicy;
|
|
24
24
|
exports.savePasswordHistoryPolicy = savePasswordHistoryPolicy;
|
|
25
25
|
exports.testCurrentIp = testCurrentIp;
|
|
26
|
+
exports.testCurrentIpInAllowList = testCurrentIpInAllowList;
|
|
26
27
|
exports.updateDomainRestrictionConfig = updateDomainRestrictionConfig;
|
|
27
28
|
exports.updateIPRestrictionConfig = updateIPRestrictionConfig;
|
|
28
29
|
|
|
@@ -132,4 +133,8 @@ async function deleteIPRestriction(id) {
|
|
|
132
133
|
|
|
133
134
|
async function testCurrentIp() {
|
|
134
135
|
return (0, _fetch.Post)(`${_constants.urls.identity.restrictions.ip.v1}/verify`);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
async function testCurrentIpInAllowList() {
|
|
139
|
+
return (0, _fetch.Post)(`${_constants.urls.identity.restrictions.ip.v1}/verify/allow`);
|
|
135
140
|
}
|
package/node/index.js
CHANGED