|
|
|
@ -16,7 +16,7 @@ const session = new Session(db)
|
|
|
|
|
|
|
|
|
|
Create a new Session for User. Agent and Language from User will be used to create a Hmac value in the DB. The IP is optional. If
|
|
|
|
|
one of these values are changed, the session is invalid. After Creating the session you get a Random Token, and the userId as
|
|
|
|
|
hash. UserHash and Token are
|
|
|
|
|
hash.
|
|
|
|
|
|
|
|
|
|
### get(userHash: string, token: string, agent: string, language: string, ip = '')
|
|
|
|
|
|
|
|
|
|