android - Do I need to make use of Offline Access in Google Sign-in to retrieve and save user info (name etc) on the backend? -


background:

i building android app required user sign-in/register service if wish contribute.

the service need basic info of user (name, gender etc) on backend in order register them.

the app providing google sign-in well.

my understanding:

sending id-token backend give me email of user (check json tokeninfo endpoint returns). in order retreive additional user info on backend irrespective of whether user signed-in or not need offline access permission (more intimidating) user, access- , refresh-token, , info.

another option retreive these info on app , send them backend along id-token verification , registration.

question(s):

can pull additional info on user while user still online (using app) through id-token, on serverside/backend? or should request additional permission offline access in order them? or, mentioned in previous section, pull required info on app-side , send on backend along id-token?

if want information once in opinion better additional information in app rather asking additional (with potential denial user) permission used on server.

this make sure have needed information while user being signed in.


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -