Detect User Cancel Event from In.User.authorize popup window

2 posts / 0 new
Last post
Nathan Artz's picture
Joined: 03/24/2011
Thu, 02/23/2012 - 15:56
Detect User Cancel Event from In.User.authorize popup window

Hi Guys,
I'm using the JSAPI, using In.User.Authorize() to pop up the 'login with linked-in' window. However, if the user decides that he/she doesnt want to use it, and clicks the 'cancel' button (as opposed to logging in), how do I register some sort of callback to the event when the user clicks 'cancel' or closes the window without authorizing? As far as I know, doing In.User.Authorize( function(res) { // do stuff here }) is only a callback if the user actually gets authorized (but nothing happens if the user clicks cancel.

Thanks!

Eugene O'Neill's picture
Developer Advocate
Joined: 01/07/2011
Thu, 02/23/2012 - 16:51

We don't currently support an "aborted" case so this isn't possible at the moment. We'll consider it for a future feature.

Sorry for the bad news :\

- Eugene