delete token and tring to dont save account

This commit is contained in:
2025-10-17 18:29:05 -06:00
parent 28dbf45756
commit 351b5c6643
2 changed files with 6 additions and 1 deletions
+6
View File
@@ -29,6 +29,12 @@ export class GoogleStrategy extends PassportStrategy(Strategy, 'google') {
});
}
authorizationParams() {
return {
prompt: 'select_account',
};
}
async validate(
req: any,
accessToken: string,
-1
View File
@@ -45,7 +45,6 @@ export class PersonaController {
error: false,
msj: `Bienvenido ${persona.nombre} ${persona.apellidoP} ${persona.apellidoM}`,
data: {
token: req.headers.authorization.split(' ')[1], // token que envió el cliente
userId: persona.idPersona,
nombre: persona.nombre,
apellidoP: persona.apellidoP,