New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@guestlinelabs/react-auth

Package Overview
Dependencies
Maintainers
8
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@guestlinelabs/react-auth - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

49

dist/auth.d.ts

@@ -30,51 +30,4 @@ import { LoginFunction, HandleRedirectCallbackFunction, LogoutFunction } from './types';

accessToken: string;
userInfo: {
id: string;
email: string;
email_verified: boolean;
name: string;
nickname: string;
given_name?: string | undefined;
family_name?: string | undefined;
preferred_username: string;
picture: string;
locale: string;
isGuestline: boolean;
isSuperuser: boolean;
tenants: Record<string, {
authentication: {
rezlynx: {
id: string;
username: string;
roles: string[];
}[];
roomlynx: {
id: string;
username: string;
}[];
roomlynxGroupSettings: {
role: string;
};
rezlynxGroupSettings: {
username: string;
roles: string[];
ssoManagedRoles: boolean;
ssoManagedUser: boolean;
};
};
authorization: {
users: {
read: boolean;
create: boolean;
update_permissions: boolean;
delete: boolean;
};
insights: {
read: boolean;
allowExport: boolean;
};
};
}>;
};
userInfo: import("./types").UserInfo;
error: Error | null;
};

4

dist/index.d.ts
import { useAuth } from './auth';
import { AuthData, HandleRedirectCallbackFunction, LoginFunction, LogoutFunction, SubscriptionHandler } from './types';
import { AuthData, UserInfo, HandleRedirectCallbackFunction, LoginFunction, LogoutFunction, SubscriptionHandler } from './types';
declare type Authentication = {

@@ -16,2 +16,2 @@ subscriptions: SubscriptionHandler[];

}
export { useAuth, AuthData };
export { useAuth, AuthData, UserInfo };

@@ -51,2 +51,17 @@ import * as t from 'io-ts';

export declare type LogoutFunction = () => void;
export declare type UserInfo = {
id: string;
email: string;
email_verified: boolean;
name: string;
nickname: string;
given_name?: string;
family_name?: string;
preferred_username: string;
picture: string;
locale: string;
isGuestline: boolean;
isSuperuser: boolean;
tenants: Record<string, TenantMetadata>;
};
export declare type AuthData = {

@@ -69,19 +84,5 @@ isLoading: true;

accessToken: string;
userInfo: {
id: string;
email: string;
email_verified: boolean;
name: string;
nickname: string;
given_name?: string;
family_name?: string;
preferred_username: string;
picture: string;
locale: string;
isGuestline: boolean;
isSuperuser: boolean;
tenants: Record<string, TenantMetadata>;
};
userInfo: UserInfo;
};
export declare type SubscriptionHandler = (error: Error | null, data?: AuthData) => void;
export {};
{
"name": "@guestlinelabs/react-auth",
"version": "2.0.1",
"version": "2.0.2",
"description": "TODO: Give a short introduction of your project. Let this section explain the objectives or the motivation behind this project.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

import { useAuth } from './auth';
import {
AuthData,
UserInfo,
HandleRedirectCallbackFunction,

@@ -30,2 +31,2 @@ LoginFunction,

export { useAuth, AuthData };
export { useAuth, AuthData, UserInfo };

@@ -116,2 +116,21 @@ import * as t from 'io-ts';

export type UserInfo = {
id: string;
email: string;
email_verified: boolean;
name: string;
nickname: string;
given_name?: string;
family_name?: string;
preferred_username: string;
picture: string;
locale: string;
isGuestline: boolean;
isSuperuser: boolean;
tenants: Record<string, TenantMetadata>;
};
export type AuthData =

@@ -137,20 +156,3 @@ | {

accessToken: string;
userInfo: {
id: string;
email: string;
email_verified: boolean;
name: string;
nickname: string;
given_name?: string;
family_name?: string;
preferred_username: string;
picture: string;
locale: string;
isGuestline: boolean;
isSuperuser: boolean;
tenants: Record<string, TenantMetadata>;
};
userInfo: UserInfo;
};

@@ -157,0 +159,0 @@

Sorry, the diff of this file is not supported yet

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