@monderks/nestjs-keycloak-auth 0.1.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/package.json +9 -11
package/README.md
CHANGED
@@ -15,7 +15,7 @@ Librería para validación de tokens Keycloak en NestJS cuando el frontend contr
|
|
15
15
|
## Instalación
|
16
16
|
|
17
17
|
```bash
|
18
|
-
npm install @monderks/keycloak-auth
|
18
|
+
npm install @monderks/nestjs-keycloak-auth
|
19
19
|
```
|
20
20
|
|
21
21
|
## Configuración
|
@@ -24,7 +24,7 @@ npm install @monderks/keycloak-auth
|
|
24
24
|
|
25
25
|
```typescript
|
26
26
|
import { Module } from '@nestjs/common';
|
27
|
-
import { KeycloakAuthModule } from '@monderks/keycloak-auth';
|
27
|
+
import { KeycloakAuthModule } from '@monderks/nestjs-keycloak-auth';
|
28
28
|
|
29
29
|
@Module({
|
30
30
|
imports: [
|
@@ -49,7 +49,7 @@ export class AppModule {}
|
|
49
49
|
```typescript
|
50
50
|
import { Module } from '@nestjs/common';
|
51
51
|
import { ConfigModule, ConfigService } from '@nestjs/config';
|
52
|
-
import { KeycloakAuthModule } from '@monderks/keycloak-auth';
|
52
|
+
import { KeycloakAuthModule } from '@monderks/nestjs-keycloak-auth';
|
53
53
|
|
54
54
|
@Module({
|
55
55
|
imports: [
|
@@ -78,8 +78,8 @@ Esta librería **no expone controladores**. Solo provee servicios, guards y deco
|
|
78
78
|
|
79
79
|
```typescript
|
80
80
|
import { Controller, Get, Post, Body, UseGuards } from '@nestjs/common';
|
81
|
-
import { KeycloakAuthService, KeycloakAuthGuard, KeycloakAuth, CurrentUser } from '@monderks/keycloak-auth';
|
82
|
-
import { DecodedToken } from '@monderks/keycloak-auth';
|
81
|
+
import { KeycloakAuthService, KeycloakAuthGuard, KeycloakAuth, CurrentUser } from '@monderks/nestjs-keycloak-auth';
|
82
|
+
import { DecodedToken } from '@monderks/nestjs-keycloak-auth';
|
83
83
|
|
84
84
|
@Controller('api/auth')
|
85
85
|
export class AuthController {
|
package/package.json
CHANGED
@@ -1,18 +1,9 @@
|
|
1
1
|
{
|
2
2
|
"name": "@monderks/nestjs-keycloak-auth",
|
3
|
-
"version": "0.1
|
3
|
+
"version": "0.3.1",
|
4
4
|
"description": "Librería para validación de tokens Keycloak en NestJS (frontend controla login)",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"types": "dist/index.d.ts",
|
7
|
-
"scripts": {
|
8
|
-
"build": "tsc",
|
9
|
-
"dev": "tsc --watch",
|
10
|
-
"test": "jest",
|
11
|
-
"lint": "eslint src/**/*.ts",
|
12
|
-
"format": "prettier --write src/**/*.ts",
|
13
|
-
"prepare": "npm run build",
|
14
|
-
"publish": "npm publish --access public"
|
15
|
-
},
|
16
7
|
"repository": {
|
17
8
|
"type": "git",
|
18
9
|
"url": "https://github.com/AlejoClifton/nestjs-keycloak-auth.git"
|
@@ -48,5 +39,12 @@
|
|
48
39
|
"peerDependencies": {
|
49
40
|
"@nestjs/common": "^11.1.3",
|
50
41
|
"@nestjs/core": "^11.1.3"
|
42
|
+
},
|
43
|
+
"scripts": {
|
44
|
+
"build": "tsc",
|
45
|
+
"dev": "tsc --watch",
|
46
|
+
"test": "jest",
|
47
|
+
"lint": "eslint src/**/*.ts",
|
48
|
+
"format": "prettier --write src/**/*.ts"
|
51
49
|
}
|
52
|
-
}
|
50
|
+
}
|