Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jortilles committed Jun 18, 2024
1 parent 800df3d commit b0267e3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions eda/eda_app/src/app/services/guards/login-guard.guard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,19 @@ export class LoginGuardGuard implements CanActivate {
public router: Router) { }

canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot) {


console.log( route);
if(route.queryParams.token){
console.log('aqui tengo el token!!!!!');
console.log('llamo a la api y recupero los valores del usuario');
// savingStorage( id: string, token: string, user: User) ;
// savingStorage( id de usuario 135792467811111111111111, token: el token que me llega, user: el objeto user del mongo) ;
}




if (this.userService.isLogged()) {
return true;
} else {
Expand Down

0 comments on commit b0267e3

Please sign in to comment.