ferrerojosh / nest-keycloak-connect

keycloak-nodejs-connect module for Nest
MIT License
318 stars 123 forks source link

How to get user id in controller? #192

Closed teaknig closed 3 weeks ago

teaknig commented 1 month ago

In my case, the @KeycloakUser decorator isn't working for some reason

image

versions:

    "keycloak-connect": "^26.0.1",
    "nest-keycloak-connect": "^1.10.1",
ferrerojosh commented 3 weeks ago

In my case, the @KeycloakUser decorator isn't working for some reason

image

versions:

    "keycloak-connect": "^26.0.1",
    "nest-keycloak-connect": "^1.10.1",

v2.0 is not yet released yet, I forgot to change the default branch to show 1.0, my bad.

EDIT: I switched the branch just now. It should be @AuthenticatedUser for the old one.

teaknig commented 3 days ago

Thank you very much