Skip to content

Authentication

Before using the SDK, set the Prove ID environment it connects to:

EndpointManager.setServerUrl("https://test.api.proveid.io"); // test
// EndpointManager.setServerUrl("https://api.proveid.io"); // production

Also give the SDK the SharedPreferences where it keeps its session:

Authentication.setSharedPreferences(getApplicationContext());

The recommended setup, as with the Web SDK, is to obtain the access token on your server and hand it to the app as a short-lived token.