Subversion Repositories SmartDukaan

Rev

Rev 21987 | Rev 22073 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 21987 Rev 22071
Line 3... Line 3...
3
 
3
 
4
var startApp = function() {
4
var startApp = function() {
5
  gapi.load('auth2', function(){
5
  gapi.load('auth2', function(){
6
    // Retrieve the singleton for the GoogleAuth library and set up the client.
6
    // Retrieve the singleton for the GoogleAuth library and set up the client.
7
    auth2 = gapi.auth2.init({
7
    auth2 = gapi.auth2.init({
8
      client_id: '968353813927-c7eb4mm2lmm451kb6plk9cdmtf47e3mk.apps.googleusercontent.com',
8
      client_id: googleApiKey,
9
      cookiepolicy: 'single_host_origin',
9
      cookiepolicy: 'single_host_origin',
10
      // Request scopes in addition to 'profile' and 'email'
10
      // Request scopes in addition to 'profile' and 'email'
11
      //scope: 'additional_scope'
11
      //scope: 'additional_scope'
12
    });
12
    });
13
    attachSignin(document.getElementById('customBtn'));
13
    attachSignin(document.getElementById('customBtn'));