Example node.js with multiple method authentication and activity-based authorisation