示例#1
0
        public static Metadata GetRequestHeaders(ISyncLocalStorageService localStorage)
        {
            Metadata headers = null;

            if (localStorage.HasAccessToken())
            {
                var tokenType   = localStorage.GetTokenType();
                var accessToken = localStorage.GetAccessToken();

                headers = SetAuthorizationHeader(headers, tokenType, accessToken);
            }

            return(headers);
        }