@sebastienblanc i copied and pasted from my example https://github.com/lholmquist/oauth2server/blob/master/public/main.js#L35

yea,  this should var should be changed to make sense