title: PhoneGap and OAuth2
body: <p>I am developing a PhoneGap application and require my users to sign in through Google with OAuth2. Is this possible directly through JavaScript? I have almost no experience with JavaScript (and jQuery).</p>
  
  <p>What are the options? I have thought of a cumbersome alternative which involves posting the username/password to an application I have hosted on a server which then takes care of logging in. Then the PhoneGap app will have to ask the server if the authentication was successful. However, I was hoping there would be a simpler way.</p>
  
  <p><strong>What is the best way signing in through Google on a PhoneGap app?</strong></p>