Xamarin authentication using JWT
<p>I have begun development of my first Xamarin cross-platform application for Android and iOS (not using Xamarin Forms). The application will require the user to login using a REST API and stay authenticated. I've looked into Xamarin.Auth but can't find any method of using that without OAuth.</p>

<p>The backend is setup to provide a JWT and was hoping that could be used for the authentication in a similar way to how a website would use JWT for authentication.</p>

<p>My approach for this would be:</p>

<ul>
<li>Use WebClient to send the login credentials to the API</li>
<li>API sends back the JWT</li>
<li>Xamarin stores the JWT on the device</li>
<li>Each API call sends the JWT along with it</li>
<li>API checks if the JWT is valid</li>
</ul>

<p>Is this a secure method of authentication? What would be the best way to store the JWT in the application?</p>

<p>P.S. the main reason I am not using OAuth is because I have not setup (and not entirely sure how to) the backend for OAuth authentication.</p>

<p>Thanks.</p>