marvin-auth-kit
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -38,3 +38,3 @@ import { AxiosRequestConfig } from 'axios'; | ||
*/ | ||
confirmPassword(user: string, token: string, password: string): Promise<any>; | ||
confirmPassword(token: string, password: string): Promise<any>; | ||
/** | ||
@@ -41,0 +41,0 @@ * The refreshAccessToken function calls the tokens endpoint with the refreshToken. |
@@ -92,11 +92,6 @@ "use strict"; | ||
*/ | ||
async confirmPassword(user, token, password) { | ||
async confirmPassword(token, password) { | ||
try { | ||
const url = `${this.config.url}/password/reset?token=${token}&password=${password}&confirm_password=${password}`; | ||
const response = await axios_1.default.post(url, { | ||
name: user, | ||
tenant: this.config.tenant, | ||
password, | ||
password_confirm: password, | ||
}); | ||
const response = await axios_1.default.post(url); | ||
return response; | ||
@@ -103,0 +98,0 @@ } |
{ | ||
"name": "marvin-auth-kit", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Javscript authentication kit", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -108,15 +108,6 @@ import axios, { AxiosRequestConfig } from 'axios'; | ||
*/ | ||
public async confirmPassword( | ||
user: string, | ||
token: string, | ||
password: string | ||
): Promise<any> { | ||
public async confirmPassword(token: string, password: string): Promise<any> { | ||
try { | ||
const url = `${this.config.url}/password/reset?token=${token}&password=${password}&confirm_password=${password}`; | ||
const response = await axios.post(url, { | ||
name: user, | ||
tenant: this.config.tenant, | ||
password, | ||
password_confirm: password, | ||
}); | ||
const response = await axios.post(url); | ||
@@ -123,0 +114,0 @@ return response; |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
18806
476