my-app
Preparing search index...
lib/SessionHelper
default
Class default
Index
Constructors
constructor
Methods
create
Session
generate
Unique
Session
Code
get
Session
get
Session
By
Code
is
Admin
validate
Session
Constructors
constructor
new
default
()
:
default
Returns
default
Methods
Static
create
Session
createSession
(
userId
:
number
,
)
:
Promise
<
{
Admin_ID
:
number
;
Bewertung_JSON
:
JsonValue
;
Date
:
Date
;
Datei_Pfad
:
string
|
null
;
Einstellungs_JSON
:
JsonValue
;
Secret
:
string
|
null
;
Session_Code
:
string
|
null
;
Session_ID
:
number
;
Status
:
string
|
null
;
}
,
>
Parameters
userId
:
number
Returns
Promise
<
{
Admin_ID
:
number
;
Bewertung_JSON
:
JsonValue
;
Date
:
Date
;
Datei_Pfad
:
string
|
null
;
Einstellungs_JSON
:
JsonValue
;
Secret
:
string
|
null
;
Session_Code
:
string
|
null
;
Session_ID
:
number
;
Status
:
string
|
null
;
}
,
>
Static
generate
Unique
Session
Code
generateUniqueSessionCode
(
length
?:
number
)
:
Promise
<
string
>
Parameters
length
:
number
= 6
Returns
Promise
<
string
>
Static
get
Session
getSession
(
sessionId
:
number
,
)
:
Promise
<
|
{
Admin_ID
:
number
;
Bewertung_JSON
:
JsonValue
;
Date
:
Date
;
Datei_Pfad
:
string
|
null
;
Einstellungs_JSON
:
JsonValue
;
Secret
:
string
|
null
;
Session_Code
:
string
|
null
;
Session_ID
:
number
;
Status
:
string
|
null
;
}
|
null
,
>
Parameters
sessionId
:
number
Returns
Promise
<
|
{
Admin_ID
:
number
;
Bewertung_JSON
:
JsonValue
;
Date
:
Date
;
Datei_Pfad
:
string
|
null
;
Einstellungs_JSON
:
JsonValue
;
Secret
:
string
|
null
;
Session_Code
:
string
|
null
;
Session_ID
:
number
;
Status
:
string
|
null
;
}
|
null
,
>
Static
get
Session
By
Code
getSessionByCode
(
sessionCode
:
string
,
)
:
Promise
<
|
{
Admin_ID
:
number
;
Bewertung_JSON
:
JsonValue
;
Date
:
Date
;
Datei_Pfad
:
string
|
null
;
Einstellungs_JSON
:
JsonValue
;
Secret
:
string
|
null
;
Session_Code
:
string
|
null
;
Session_ID
:
number
;
Status
:
string
|
null
;
}
|
null
,
>
Parameters
sessionCode
:
string
Returns
Promise
<
|
{
Admin_ID
:
number
;
Bewertung_JSON
:
JsonValue
;
Date
:
Date
;
Datei_Pfad
:
string
|
null
;
Einstellungs_JSON
:
JsonValue
;
Secret
:
string
|
null
;
Session_Code
:
string
|
null
;
Session_ID
:
number
;
Status
:
string
|
null
;
}
|
null
,
>
Static
is
Admin
isAdmin
(
session
:
{
Admin_ID
:
number
;
Bewertung_JSON
:
JsonValue
;
Date
:
Date
;
Datei_Pfad
:
string
|
null
;
Einstellungs_JSON
:
JsonValue
;
Secret
:
string
|
null
;
Session_Code
:
string
|
null
;
Session_ID
:
number
;
Status
:
string
|
null
;
}
,
userId
:
number
,
)
:
Promise
<
boolean
>
Parameters
session
:
{
Admin_ID
:
number
;
Bewertung_JSON
:
JsonValue
;
Date
:
Date
;
Datei_Pfad
:
string
|
null
;
Einstellungs_JSON
:
JsonValue
;
Secret
:
string
|
null
;
Session_Code
:
string
|
null
;
Session_ID
:
number
;
Status
:
string
|
null
;
}
userId
:
number
Returns
Promise
<
boolean
>
Static
validate
Session
validateSession
(
sessionCode
:
string
)
:
boolean
Parameters
sessionCode
:
string
Returns
boolean
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
create
Session
generate
Unique
Session
Code
get
Session
get
Session
By
Code
is
Admin
validate
Session
my-app
Loading...