mozilla / id.webmaker.org

OAuth 2.0 identity provider for Webmaker
https://id.webmaker.org
Mozilla Public License 2.0
18 stars 51 forks source link

Clean up JSON parsing in account module #396

Open cadecairos opened 8 years ago

cadecairos commented 8 years ago

The code can be reduced a bit if we combine the json parsing step.

I.E. https://github.com/mozilla/id.webmaker.org/blob/e749106a04dc6ce6d8ab9ecfe5328ce6c2d0e624/lib/account.js#L31-L44