Added parameter authResult to handleAuthResult