CapacitorGoogleAuth icon indicating copy to clipboard operation
CapacitorGoogleAuth copied to clipboard

Implement GIS Implicit flow for web

Open axi opened this issue 2 years ago • 6 comments

An implementation with implicit flow which supports scopes. There are still some things to figure out:

  • Not sure about the refresh() case: is it still needed if grantOfflineAccess is not supported anymore ?
  • As stated here, I didn't choose Authorization code flow because it would now require a backend platform to host an authorization code endpoint.

axi avatar Feb 07 '23 08:02 axi

This should fix #202 but I need some opinions on this one, @reslear maybe ?

axi avatar Feb 22 '23 14:02 axi

Hey, cool, but we need more code flow also

reslear avatar Feb 22 '23 15:02 reslear

I don't get why we should have code flow, it wasn't the case before, is it ?

axi avatar Feb 28 '23 12:02 axi

@axi thanks for this. Can we get this merged before google shuts us down?

sjdrew avatar Mar 10 '23 03:03 sjdrew

@axi one minor suggestion. the scriptId you have as "gapi" but this is actually loading the GIS Library which loads itself onto the window as 'google'.

The GAPI Library, loads itself onto the window object as 'gapi' .

So would just be less confusing if you named that scriptId tag "gis".

sjdrew avatar Mar 10 '23 03:03 sjdrew

I don't know what to do next without guidance

axi avatar Mar 10 '23 08:03 axi