HWIOAuthBundle
HWIOAuthBundle copied to clipboard
Add handling for an expired token on Bitbucket while fetching user information
In case there is an empty email with Bitbucket and there is an attempt to fetch the linked emails. There is a second request to emails_url that could fail in case the token is expired. This results into an undefined index warning while accessing values and the user information missing the email.
I've added a refresh for the token and attempting to fetch emails again.