Const
HTTP Basic auth (RFC 7617). lookup verifies the decoded username/password and returns whatever should end up on event.context.user — return a falsy value to reject the request.
lookup
event.context.user
enhance(handler, Auth.Basic(({ username, password }) => findUser(username, password))) Copy
enhance(handler, Auth.Basic(({ username, password }) => findUser(username, password)))
HTTP Basic auth (RFC 7617).
lookupverifies the decoded username/password and returns whatever should end up onevent.context.user— return a falsy value to reject the request.