assets/Code examples/WebAppSDK/photoSharingWidget/js/example3.js
/**
       * Check if the current user has authorized the application.
       */
Check if the current user has authorized the application.
Check if the current user has authorized the application .
function checkAuth() {
        gapi.auth.authorize(
            {'client_id': CLIENT_ID, 'scope': SCOPES, 'immediate': true},
            handleAuthResult);
      }
function checkAuth ( ) { gapi . auth . authorize ( { 'client_id' : CLIENT_ID , 'scope' : SCOPES , 'immediate' : true } , handleAuthResult ) ; }
Check if the current user has authorized the application.
Check if the current user has authorized the application .