public static RemoveAuthenticationFromThisSession ( this module ) : IResponseFormatter | ||
module | this | |
return | IResponseFormatter |
public static IResponseFormatter RemoveAuthenticationFromThisSession(this NancyModule module)
{
var userInstance = module.Context.CurrentUser.ToUserModel();
Auth0Authentication.RemoveAuthenticationFor(userInstance, module.Session);
return module.Response;
}