This results in goth crashing at gothv1,74.1/providers/google/session.go during authorize and token exchange -
On line 44, goth assumes that an id_token is always returned. However, only if we add "email" or "open_id connect" in the scopes, we will get the scope. Otherwise, goth crashes because id_token is never returned.
I was trying to do google OAuth 2.0 login with the following scope -
This results in goth crashing at gothv1,74.1/providers/google/session.go during authorize and token exchange - On line 44, goth assumes that an id_token is always returned. However, only if we add "email" or "open_id connect" in the scopes, we will get the scope. Otherwise, goth crashes because id_token is never returned.
If you are okay, I can submit a PR for this.