Returns hapi.result.Success if the session is valid. Otherwise, the session is invalid and passing it to other HAPI calls may result in undefined behavior.
Usage ¶
isSessionValid(session
: hapi.Session) → bool
Checks whether the session identified by hapi.Session.id is a valid session opened in the implementation identified by hapi.Session.type.
session
The hapi.Session to check.