make popup window removed video token and cookie when it is closed. Fixed mobile context menu not being able to download files

This commit is contained in:
kyle hoell
2020-11-27 17:53:15 -05:00
parent 9dbddb244e
commit f6fbada5b1
6 changed files with 72 additions and 14 deletions
+2
View File
@@ -8,6 +8,7 @@ interface RequestType extends Request {
user?: UserInterface,
token?: string,
encryptedToken?: string,
accessTokenStreamVideo?: string
}
// type jwtType = {
@@ -84,6 +85,7 @@ const authStreamVideo = async(req: RequestType, res: Response, next: NextFunctio
if (!tokenFound) throw new Error("Refresh Token Not Found");
req.user = user;
req.accessTokenStreamVideo = encryptedToken;
next();