I ran into this with Domain Access as well. Patch works great!
Thanks. #13 applied cleanly to alpha6 and worked for me.
Patch from #9 seems to be working well. Thanks!
I tried #4, but was unsuccessful. Am seeing, "Uncaught TypeError: once ID must be a string" in the console log.
I got a notification from Facebook this morning that my app was hanging/crashing on login. Found the same error that OP described and found that the suggestion to switch to drupal_session_regenerate() addressed the issue.
#7 patch works for me as well. Thanks @jhedstrom
This didn't apply cleanly for me. Here's an updated patch that includes new line numbers.
Patch #273 looks good to me as well. Thanks @slasher13!
10 years later, this patch applies cleanly and seems to work well, so marking RTBC. I'm running LoginToboggan and hybridauth together and found that I had a couple of users running into this. The login successful message appeared on every page. One user just had a regular login and has had this issue come and go intermittently over the last couple years, but this time around it was also affecting anyone used hybridauth to login via a Google Account.
Thanks for the patch!