jquery mobile - not able to go to home.html page after google Oauth login in intel xdk cordova -


in application there 2 page index.html -where writing below code google login , home.html -that project ,so want direct home.html page after google login

// here going facebook page("redirect_uri") after google login . // want go home.html page after successful login google

function oauth2_login() {     $.oauth2({         auth_url: 'https://accounts.google.com/o/oauth2/auth',           // required         response_type: 'code',      // required - "code"/"token"         token_url: 'https://accounts.google.com/o/oauth2/token',          // required if response_type = 'code'         logout_url: 'https://accounts.google.com/logout',         // recommended if available         client_id: '185145351719-0n649irsocu3tkmvf5uo29t454m7au88.apps.googleusercontent.com',          // required         client_secret: 'wdvpuvr7lmat3lbv3z4xlhbo',      // required if response_type = 'code'         redirect_uri: 'https://www.facebook.com/',       // required - dummy url         other_params: {scope: 'profile'}       // optional params object scope, state, display...     }, function(token, response){ 

// below json credentials google login

 {"web":{"client_id":"185145351719-0n649irsocu3tkmvf5uo29t454m7au88.apps.googleusercontent.com", "project_id":"composite-fire-176508", "auth_uri":"https://accounts.google.com/o/oauth2/auth", "token_uri":"https://accounts.google.com/o/oauth2/token", "auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs", "client_secret":"wdvpuvr7lmat3lbv3z4xlhbo", "redirect_uris":["https://www.facebook.com/"]}} 

please let me know should write on place of facebook go home.html page .


Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -