zquestz / omniauth-google-oauth2

Oauth2 strategy for Google
1.45k stars 413 forks source link

undefined method bytesize for hash #418

Closed chmtt closed 2 years ago

chmtt commented 2 years ago

I am using rails 7 and getting the following error when google redirects to my app:

ERROR -- omniauth: (google_oauth2) Authentication failure! undefined method "bytesize" for #<Hash:...>: NoMethodError, undefined method "bytesize" for #<Hash:...>

zquestz commented 2 years ago

This is not inside of our gem. We literally don't use that method anywhere in our code. Might be more obvious with a full stack trace.

Jory-Jaguar commented 2 years ago

This seems to be related to this issue in the dependency, https://github.com/oauth-xx/oauth2/issues/572 Updating to Oauth2 1.4.9 solved this issue for me.

chmtt commented 2 years ago

Updating to Oauth2 1.4.9 solved this issue for me.

@Jory-Jaguar thank you this fixed the issue for me too 🙏🏻