@guestlinelabs/react-auth
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -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; | ||
}; |
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
45593
854