Skip to content
Snippets Groups Projects

Join game

Merged Ghost User requested to merge JoinGame into Development
2 files
+ 3
0
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 2
0
@@ -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) {
Loading