Update endpoint.js
implement state config
Update endpoint.js
Merge pull request #15 from doapp-ryanp/master

Implement oauth state attribute