use of org.fundacionparaguaya.adviserplatform.data.remote.AuthenticationManager in project ps-advisor-app by wpi-poverty-stoplight.
the class DatabaseModule method provideAuthManager.
@Provides
@Singleton
AuthenticationManager provideAuthManager(SharedPreferences sharedPreferences, ServerInterceptor serverInterceptor, ConnectivityWatcher connectivityWatcher) {
Retrofit authRetrofit = new Retrofit.Builder().client(httpBuilder.addInterceptor(serverInterceptor).build()).baseUrl(URL_AUTH_ENDPOINT).addConverterFactory(GsonConverterFactory.create()).build();
AuthenticationManager authManager = new AuthenticationManager(authRetrofit.create(AuthenticationService.class), sharedPreferences, connectivityWatcher);
return authManager;
}
Aggregations