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

@frontegg/rest-api

Package Overview
Dependencies
Maintainers
2
Versions
611
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@frontegg/rest-api - npm Package Compare versions

Comparing version 3.1.24 to 3.1.25

2

index.js

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

/** @license Frontegg v3.1.24
/** @license Frontegg v3.1.25
*

@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the

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

/** @license Frontegg v3.1.24
/** @license Frontegg v3.1.25
*

@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the

@@ -9,2 +9,3 @@ "use strict";

exports.getUserPhoneNumbers = getUserPhoneNumbers;
exports.preVerifyPhoneNumber = preVerifyPhoneNumber;
exports.verifyDeletePhoneNumber = verifyDeletePhoneNumber;

@@ -29,2 +30,6 @@ exports.verifyPhoneNumber = verifyPhoneNumber;

async function preVerifyPhoneNumber(body) {
return (0, _fetch.Post)(`${_constants.urls.identity.phoneNumbers.v1}/preverify`, body);
}
async function verifyPhoneNumber(body) {

@@ -31,0 +36,0 @@ return (0, _fetch.Post)(`${_constants.urls.identity.phoneNumbers.v1}/verify`, body);

{
"name": "@frontegg/rest-api",
"version": "3.1.24",
"version": "3.1.25",
"main": "./node/index.js",

@@ -5,0 +5,0 @@ "license": "MIT",

import { FronteggPaginationWrapper } from "../interfaces";
import { ICreatePhoneNumberResponse, IDeletePhoneNumberResponse, IGetPhoneNumbersQueryParams, IPhoneNumber, IUpdatePhoneNumber, IVerifyPhoneNumber } from "./interfaces";
import { ICreatePhoneNumberResponse, IDeletePhoneNumberResponse, IGetPhoneNumbersQueryParams, IPhoneNumber, IPreVerifyPhoneNumber, IPreVerifyPhoneNumberResponse, IUpdatePhoneNumber, IVerifyPhoneNumber } from "./interfaces";
/**

@@ -8,3 +8,3 @@ * Get phone numbers of user

/**
* Create new phone number for user
* Create new phone number for user, by default otc will be sent with this request
*/

@@ -17,2 +17,6 @@ export declare function createPhoneNumber(body: IUpdatePhoneNumber): Promise<ICreatePhoneNumberResponse>;

/**
* Pre verify phone number, used before verify to send OTC to user
*/
export declare function preVerifyPhoneNumber(body: IPreVerifyPhoneNumber): Promise<IPreVerifyPhoneNumberResponse>;
/**
* Verify phone number

@@ -19,0 +23,0 @@ */

@@ -12,2 +12,5 @@ import { urls } from "../constants";

}
export async function preVerifyPhoneNumber(body) {
return Post(`${urls.identity.phoneNumbers.v1}/preverify`, body);
}
export async function verifyPhoneNumber(body) {

@@ -14,0 +17,0 @@ return Post(`${urls.identity.phoneNumbers.v1}/verify`, body);

@@ -18,3 +18,7 @@ import { PaginationOrderEnum } from "../interfaces";

phoneNumber: string;
verify?: boolean;
};
export interface IPreVerifyPhoneNumber {
phoneNumber: string;
}
export interface IVerifyPhoneNumber {

@@ -25,2 +29,5 @@ otcToken: string;

export interface ICreatePhoneNumberResponse {
otcToken?: string;
}
export interface IPreVerifyPhoneNumberResponse {
otcToken: string;

@@ -27,0 +34,0 @@ }

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