Skip to content
Snippets Groups Projects
Unverified Commit c930f7ea authored by Denis's avatar Denis Committed by GitHub
Browse files

Merge pull request #13 from ivanalglave/changeTokenParam

Change token param
parents 25badb99 311b02cc
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,7 @@ export class LoginController {
// @UseGuards(AuthGuard('local'))
@Post()
async login(@Body() req: Login) {
console.log('controller ' + req.email + req.passwordHash);
// console.log('controller ' + req.email + req.passwordHash);
return this.loginService.login(req);
}
}
......@@ -15,7 +15,7 @@ import { JwtStrategy } from './jwt.strategy';
PassportModule,
JwtModule.register({
secret: jwtConstants.secret,
signOptions: { expiresIn: '300s' },
signOptions: { expiresIn: '3600s' },
}),
],
controllers: [LoginController],
......
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