1.0.2 • Published 6 years ago

hapi-session-auth v1.0.2

Weekly downloads
10
License
-
Repository
github
Last release
6 years ago

hapi-session-auth

Authentication plugin for hapi framework based on sessions. Depends on hapi-sessions.

API

  • await request.sAuth.authenticate(credentials)
  • await request.sAuth.deauthenticate(credentials)

Credentials is an optional argument. Must be an object.

The plugin has been made by a total rookie for personal purposes. Any critics are welcome.