Hello Bibs,

I would be happy to help. In our case all user information is stores in `keycloak?.tokenParsed`

So we have something along those line:

```

const tokenParsed = keycloak?.tokenParsed

const userId = tokenParsed?.sub?.split(':')[2]

```

Of course, you might have a different structure under in toke.

Please let me know if it helped. Or else I will try to check this in more details.

David L. Rajcher
David L. Rajcher

Written by David L. Rajcher

Ex-School principal, a developer and an instructor, experienced with leading both teams and projects and over a decade of teaching students.

No responses yet