mawie81 / electron-oauth2

A library to handle OAuth2 authentication for your Electron app.
MIT License
99 stars 56 forks source link

URL of the authorization token has "approvalCode" attribute instead o… #23

Open brikendr opened 7 years ago

brikendr commented 7 years ago

…f "code".

I have tested the original repo and it seems that when onCallback is executed, the parsed url returned from google with the authorization code does not contain an attribute called code, but a new attribute called approvedCode which represents the authorization code in the window url. I updated the repo to read that attribute so that the code from line 69 to 74 is executed accordingly.