auth0-blog / nodejs-jwt-authentication-sample

A NodeJS API that supports username and password authentication with JWTs
MIT License
688 stars 267 forks source link

Update quoter.js to ensure 0 index can be returned #24

Closed kmaida closed 7 years ago

kmaida commented 7 years ago

The first (0 index in array) quote would never be returned. Using Math.floor corrects this.