check below code if it helps or pass me your code. will have a look on it.
// Set up SharePoint Context
Uri sharePointUrl = MyApp.UrlHelper.GetSharePointUrl(Request.QueryString);
MyApp.OAuthTokenPair tokenPair = MyApp.TokenDictionary.GetOAuthTokenPairFromContextToken(null, sharePointUrl.Authority, Request.Url.Authority, Request.Cookies, Response.Cookies);
string accessToken = (tokenPair != null ? tokenPair.AccessToken : "");
// Get SharePoint client context
Microsoft.SharePoint.Client.ClientContext clientContext = MyApp.TokenHelper.GetClientContextWithAccessToken(sharePointUrl.ToString(), accessToken);
// Load Query
Microsoft.SharePoint.Client.Web web = clientContext.Web;
clientContext.Load(web.CurrentUser);
clientContext.ExecuteQuery();
thanks
Kush