Auth0.Nancy.SelfHost.Auth0Authentication.LoadCurrentUser C# (CSharp) Method

LoadCurrentUser() private static method

private static LoadCurrentUser ( Nancy.NancyContext context ) : Response
context Nancy.NancyContext
return Nancy.Response
        private static Response LoadCurrentUser(NancyContext context)
        {
            if (!context.ContainsCookie(_config.CookieName)) return null;

            var cookieValue = context.ValueOfCookie(_config.CookieName);
            context.CurrentUser = CurrentUserBy(cookieValue);

            return null;
        }