• Robert Knight's avatar
    Make access token expiry check more reliable · cf7c778b
    Robert Knight authored
     * Start the clock just _before_ the access token exchange
       occurs, otherwise the client will incorrectly add the delay between
       the server sending the token and the client receiving it to the
       expiry timestamp.
    
     * Use performance.now() instead of Date.now() so that expiry checks
       are not affected by system clock changes.
    
       performance.now() is supported on IE >= 10 and all modern browsers.
    cf7c778b
Name
Last commit
Last update
.github Loading commit data...
docs Loading commit data...
images Loading commit data...
scripts Loading commit data...
src Loading commit data...
.eslintignore Loading commit data...
.eslintrc Loading commit data...
.gitignore Loading commit data...
.npmignore Loading commit data...
.npmrc Loading commit data...
.travis.yml Loading commit data...
CHANGELOG.md Loading commit data...
CODE_OF_CONDUCT Loading commit data...
Jenkinsfile Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
gulpfile.js Loading commit data...
npm-shrinkwrap.json Loading commit data...
package.json Loading commit data...