@genezio/auth
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -71,3 +71,3 @@ /** | ||
* @param {string} email - The user's email address. | ||
* @returns {Promise<ResetPasswordResponse>} An object with a boolean property "success" indicating success. | ||
* @returns void. If the method did not throw, the operation was successful. | ||
*/ | ||
@@ -81,3 +81,3 @@ resetPassword(email: string): Promise<void>; | ||
* | ||
* @returns {Promise<EmailConfirmationResponse>} An object with a boolean property "success" indicating success or failure. | ||
* @returns void. If the method did not throw, the operation was successful. | ||
*/ | ||
@@ -114,4 +114,3 @@ emailConfirmation(token: string): Promise<void>; | ||
* @param {string} token The user's token. If not provided, the token stored in the local storage will be used. | ||
* @returns {Promise<UserInfoResponse>} An object containing a boolean property "success" which is true if the | ||
* token is valid, false otherwise. | ||
* @returns {Promise<User>} An object containing the user's information. | ||
*/ | ||
@@ -118,0 +117,0 @@ userInfo(token?: string | undefined): Promise<User>; |
@@ -116,3 +116,3 @@ "use strict"; | ||
* @param {string} email - The user's email address. | ||
* @returns {Promise<ResetPasswordResponse>} An object with a boolean property "success" indicating success. | ||
* @returns void. If the method did not throw, the operation was successful. | ||
*/ | ||
@@ -131,3 +131,3 @@ async resetPassword(email) { | ||
* | ||
* @returns {Promise<EmailConfirmationResponse>} An object with a boolean property "success" indicating success or failure. | ||
* @returns void. If the method did not throw, the operation was successful. | ||
*/ | ||
@@ -179,5 +179,3 @@ async emailConfirmation(token) { | ||
const response = await this.remote.call("AuthService.googleRegistration", googleToken); | ||
if (response === "ok") { | ||
StorageManager.getStorage().setItem("token", response.token); | ||
} | ||
StorageManager.getStorage().setItem("token", response.token); | ||
return response; | ||
@@ -189,4 +187,3 @@ } | ||
* @param {string} token The user's token. If not provided, the token stored in the local storage will be used. | ||
* @returns {Promise<UserInfoResponse>} An object containing a boolean property "success" which is true if the | ||
* token is valid, false otherwise. | ||
* @returns {Promise<User>} An object containing the user's information. | ||
*/ | ||
@@ -193,0 +190,0 @@ async userInfo(token = undefined) { |
@@ -71,3 +71,3 @@ /** | ||
* @param {string} email - The user's email address. | ||
* @returns {Promise<ResetPasswordResponse>} An object with a boolean property "success" indicating success. | ||
* @returns void. If the method did not throw, the operation was successful. | ||
*/ | ||
@@ -81,3 +81,3 @@ resetPassword(email: string): Promise<void>; | ||
* | ||
* @returns {Promise<EmailConfirmationResponse>} An object with a boolean property "success" indicating success or failure. | ||
* @returns void. If the method did not throw, the operation was successful. | ||
*/ | ||
@@ -114,4 +114,3 @@ emailConfirmation(token: string): Promise<void>; | ||
* @param {string} token The user's token. If not provided, the token stored in the local storage will be used. | ||
* @returns {Promise<UserInfoResponse>} An object containing a boolean property "success" which is true if the | ||
* token is valid, false otherwise. | ||
* @returns {Promise<User>} An object containing the user's information. | ||
*/ | ||
@@ -118,0 +117,0 @@ userInfo(token?: string | undefined): Promise<User>; |
@@ -110,3 +110,3 @@ /** | ||
* @param {string} email - The user's email address. | ||
* @returns {Promise<ResetPasswordResponse>} An object with a boolean property "success" indicating success. | ||
* @returns void. If the method did not throw, the operation was successful. | ||
*/ | ||
@@ -125,3 +125,3 @@ async resetPassword(email) { | ||
* | ||
* @returns {Promise<EmailConfirmationResponse>} An object with a boolean property "success" indicating success or failure. | ||
* @returns void. If the method did not throw, the operation was successful. | ||
*/ | ||
@@ -173,5 +173,3 @@ async emailConfirmation(token) { | ||
const response = await this.remote.call("AuthService.googleRegistration", googleToken); | ||
if (response === "ok") { | ||
StorageManager.getStorage().setItem("token", response.token); | ||
} | ||
StorageManager.getStorage().setItem("token", response.token); | ||
return response; | ||
@@ -183,4 +181,3 @@ } | ||
* @param {string} token The user's token. If not provided, the token stored in the local storage will be used. | ||
* @returns {Promise<UserInfoResponse>} An object containing a boolean property "success" which is true if the | ||
* token is valid, false otherwise. | ||
* @returns {Promise<User>} An object containing the user's information. | ||
*/ | ||
@@ -187,0 +184,0 @@ async userInfo(token = undefined) { |
{ | ||
"name": "@genezio/auth", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "SDK for accessing genezio authentication system.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/cjs/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43541
1062