I tried what you suggested but it doesn't seem to make any difference.
The user still keeps getting redirected to the Access Request page.
Here is what I did:

function logIn(){
          var scope = "http://www.google.com/calendar/feeds";;
          token = google.accounts.user.checkLogin(scope);
          if(!token)
          {
                token = google.accounts.user.login(scope);
          }
}

On Feb 18, 2:07 am, Trevor Johns <[email protected]> wrote:
> On Tue, Feb 17, 2009 at 10:57 AM, ankit <[email protected]> wrote:
>
> > I am using the Google Calendar JavaScript API to perform authenticated
> > requests. I am facing a problem with the google.accounts.user.login
> > function.
> > At the beginning, after the user allows access to the application, the
> > application page gets loaded and then again user is taken to the
> > Access Request Page again. This keeps occurring repeatedly.
>
> > However, after several times of trying, sometimes the app works
> > properly.
>
> > You will understand better by going here 
> > ->http://ankitahuja.com/apps/proxycal
>
> Ankit,
> Try checking to see if the user is logged in before calling
> google.accounts.login(). You can do this by calling
> google.accounts.user.checkLogin(scope).
>
> Let me know if that makes a difference.
>
> --
> Trevor Johns

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Calendar Data API" group.
To post to this group, send email to 
[email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to