title: Azure mobile app custom authentication and MobileServiceClient
body: <p>I was following custom authentication for my azure mobile app (<a href="https://www.newventuresoftware.com/blog/custom-authentication-with-azure-mobile-apps" rel="nofollow noreferrer">https://www.newventuresoftware.com/blog/custom-authentication-with-azure-mobile-apps</a>)</p>
  
  <p>I created <strong>AuthControll</strong> which accepts username and password and creates token. When i call <strong>MobileServiceClient.InvokeApiAsync("Auth", loginInfoDictionary)</strong>, I receive the user name and token succesfully. I created <strong>new MobileServiceUser(username)</strong> with received token an set it to <strong>MobileSeviceClient.CurrentUser</strong>. But When i call <strong>MobileServiceClient.InvokeApi</strong> over method which requiere authorization, it tells me i am unauthorized.</p>
  
  <p>What i am supposed to do with received token then ? Can i use <strong>MobileServiceClient.InvokeApiAsync</strong> and <strong>MobileServiceClient.GetTable</strong> methods with this type of authorization ? If yes what i am missing ? </p>