Externaliza jwt
This commit is contained in:
@@ -6,6 +6,6 @@ import { KeycloakJwtStrategy } from './keycloak.strategy';
|
|||||||
@Module({
|
@Module({
|
||||||
controllers: [AuthController],
|
controllers: [AuthController],
|
||||||
providers: [AuthService, KeycloakJwtStrategy],
|
providers: [AuthService, KeycloakJwtStrategy],
|
||||||
exports: [AuthService],
|
exports: [AuthService, KeycloakJwtStrategy],
|
||||||
})
|
})
|
||||||
export class AuthModule {}
|
export class AuthModule {}
|
||||||
|
|||||||
@@ -21,9 +21,7 @@ export class AuthService {
|
|||||||
});
|
});
|
||||||
|
|
||||||
getUrl() {
|
getUrl() {
|
||||||
return process.env.NODE_ENV === 'development'
|
return process.env.KEYCLOAK_URL ?? 'https://auth.clipperia.com.br';
|
||||||
? 'https://auth.clipperia.com.br'
|
|
||||||
: 'http://keycloak:8080';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async login(loginDto: LoginDto) {
|
async login(loginDto: LoginDto) {
|
||||||
|
|||||||
Reference in New Issue
Block a user