• 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
..
annotator Loading commit data...
images/icons Loading commit data...
shared Loading commit data...
sidebar Loading commit data...
styles Loading commit data...
karma.config.js Loading commit data...
tsconfig.json Loading commit data...