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

pohja

parent 562467b3
No related branches found
No related tags found
2 merge requests!59Development to master,!18Join game
......@@ -28,6 +28,7 @@ export class AuthGuard implements CanActivate {
// get the token
const token = auth.split(" ")[1];
try {
// return token.
return await jwt.verify(token, process.env.SECRET);
} catch (err) {
......@@ -44,6 +45,7 @@ export class AuthGuard implements CanActivate {
// get the token
const token = auth.split(" ")[1];
try {
return token;
// return token.
return await jwt.verify(token, process.env.SECRET);
} catch (err) {
......
......@@ -35,4 +35,5 @@ export class UserService {
return error.message;
}
}
}
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