Skip to main content

@webda/coreReadme | API


Class: Session

Session

Extended by

Constructors

new Session()

new Session(): Session

Returns

Session

Properties

changed

protected changed: boolean = false

Source

packages/core/src/utils/session.ts:140


identUsed

identUsed: string

Ident used

Source

packages/core/src/utils/session.ts:152


roles

roles: string[]

User current roles

Source

packages/core/src/utils/session.ts:157


userId

userId: string

User id

Source

packages/core/src/utils/session.ts:148


uuid

uuid: string

Session uuid

Source

packages/core/src/utils/session.ts:144

Methods

getProxy()

getProxy(): this

Get the proxy to be able to track modification

Returns

this

Source

packages/core/src/utils/session.ts:196


isDirty()

isDirty(): boolean

Session is dirty and requires save

Returns

boolean

Source

packages/core/src/utils/session.ts:188


isLogged()

isLogged(): boolean

If session is authenticated

Returns

boolean

Source

packages/core/src/utils/session.ts:180


login()

login(userId, identUsed): void

Login

Parameters

userId: string

identUsed: string

Returns

void

Source

packages/core/src/utils/session.ts:164


logout()

logout(): void

Logout

Returns

void

Source

packages/core/src/utils/session.ts:171