Skip to content
Snippets Groups Projects
Commit 2e738047 authored by Samuli Virtapohja's avatar Samuli Virtapohja
Browse files

change return

parent a37a12f3
No related branches found
No related tags found
2 merge requests!59Development to master,!18Join game
...@@ -45,7 +45,6 @@ export class AuthGuard implements CanActivate { ...@@ -45,7 +45,6 @@ export class AuthGuard implements CanActivate {
// get the token // get the token
const token = auth.split(" ")[1]; const token = auth.split(" ")[1];
try { try {
return token;
// return token. // return token.
return await jwt.verify(token, process.env.SECRET); return await jwt.verify(token, process.env.SECRET);
} catch (err) { } catch (err) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment