Externaliza jwt

This commit is contained in:
LeoMortari
2025-09-15 02:04:48 -03:00
parent d08572da5a
commit d8a4b2f301
2 changed files with 2 additions and 4 deletions

View File

@@ -6,6 +6,6 @@ import { KeycloakJwtStrategy } from './keycloak.strategy';
@Module({
controllers: [AuthController],
providers: [AuthService, KeycloakJwtStrategy],
exports: [AuthService],
exports: [AuthService, KeycloakJwtStrategy],
})
export class AuthModule {}

View File

@@ -21,9 +21,7 @@ export class AuthService {
});
getUrl() {
return process.env.NODE_ENV === 'development'
? 'https://auth.clipperia.com.br'
: 'http://keycloak:8080';
return process.env.KEYCLOAK_URL ?? 'https://auth.clipperia.com.br';
}
async login(loginDto: LoginDto) {