Auth0.Nancy.SelfHost.ModuleExtensions.RemoveAuthenticationFromThisSession C# (CSharp) Method

RemoveAuthenticationFromThisSession() public static method

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;
        }