Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export interface ActionMenuItem {
red?: boolean;
routerLink?: string[];
external?: boolean;

showAddButton?: boolean;
routerLinkAdd?: string[];
tooltipAddButton?: string;
Expand Down
8 changes: 5 additions & 3 deletions src/app/core/_models/auth-user.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
* @prop _username Name of user
*/
export interface AuthData {
_expires: Date;
_expires: Date | string;
_token: string;
_username: string;
userId: number;
canonicalUsername: string;
}

/**
Expand All @@ -18,7 +19,8 @@ export class AuthUser implements AuthData {
constructor(
public _token: string,
public _expires: Date,
public _username: string
public userId: number,
public canonicalUsername: string
) {}

/**
Expand Down
19 changes: 19 additions & 0 deletions src/app/core/_models/jwt-payload.model.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { BaseModel } from '@models/base.model';

/**
* Interface for access group defining user access to agents
* @extends BaseModel
* @prop groupName Name of access group
* @prop userMembers Users which are members of the group
* @prop agentMembers Agents which are members of the group
*/

export interface JwtPayload extends BaseModel {
userId?: number;
sub?: number | string;
username?: string;
name?: string;
user?: string;
exp?: number;
[k: string]: unknown;
}
Loading
Loading