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

@genezio/auth

Package Overview
Dependencies
Maintainers
4
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@genezio/auth - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

7

dist/cjs/authService.sdk.d.ts

@@ -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",

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