This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { createHmac, timingSafeEqual } from 'crypto'; | |
import { addMinutes, isAfter } from 'date-fns'; | |
import { Request } from 'express'; | |
/* | |
* Generate and validate Signed Urls | |
* with 'express' and 'date-fns' as dependency. | |
* */ | |
export default class SignedUrl { | |
protected url: URL; |