Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 412 Bytes

README.MD

File metadata and controls

9 lines (7 loc) · 412 Bytes

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.