GitLab steht wegen Wartungsarbeiten am Montag, den 10. Mai, zwischen 17:00 und 19:00 Uhr nicht zur Verfügung.

Fixes function reference

parent 567dd2e1
......@@ -67,7 +67,9 @@ export class AuthService {
public static decodeLoginToken(req: Request, res: Response, next: NextFunction): void {
const token = req.headers.authorization;
req.headers.authorization = token?.match(/bearer /i) ? (this.decodeToken(token.substr(7)) as any).privateKey : token;
req.headers.authorization = token?.match(/bearer /i) ? (jwt.verify(token, settings.jwtSecret, {
algorithms: ['HS512'],
}) as any).privateKey : token;
return next();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment