Save Google / Facebook Login

This seems like a very common scenario for most Android applications, but so far I can’t find a lot of useful help when you browse the Internet for several hours.

In my application, I allow users to register only through FB or Google. How to enable a scenario when users do not need to log in every time they open the application?

I have already seen solutions for storing the auth token in SharedPreferences and checking it every time it starts. Is this the right approach? Do I need to check the Google token when the user is on the Android device, and I can assume that he is already signed up, then why should I repeat the authentication. Sorry, I'm a little confused.

Appreciate any help

+3
source share

All Articles