Authentication

Overview


Implementing Authentication


You can implement your own authentication for users by implementing the authenticate function. A default function is provided which does no authentication. You can read the users header information and determine whether the user is autheticated or not. If the user is not authenticated, return an object with authorized set to false, with an http status code and a message.


//always authorized
const authenticate = async function(req, res){
	return {
		status:200,
		message:'accepted',
		authorized:true
	}
}
                


Contents