python - Google oauth2 web-app vs javascript-app -


i'm using python rest apis in backend , javascript in frontend in application. so, google oauth, can use either webapps or client side.

can please explain 1 better , why ? also, if using client-side, i'm concerned hardcoding app-id in javascript code.

it comes down personal choice , user experience want create.

personally, initial auth server app, subsequent hourly refreshes using pure javascript. reason doing found quicker way click loaded page including user information server database. if downloaded js, did oauth, , used id fetch user info server, took 3 times longer. server runs on appengine, suspect i'm exploiting shorter http path google's oauth servers.

but stress, comes down user experience , flow want achieve.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -