Auth0 Home Blog Docs

JWT payload customization



Hello, I’m quite new and I need help. I am using Symfony 3.4 and Lexik JWT to authenticate via JWToken. My problem is that I need in the payload a “username”, but i get from the auth0 token “nickname” and I seem to not be able to find the default configuration of the auth0 JWTs where I can add or remove stuff. I have tried to add “username” to the metadata but I still get the same error “Unable to find key username in the token payload”. I have tried playing with creating custom scopes, but with no success getting them to work. So how can I just add a “username” in the payload, but not in a sub directory as the claims in the metadata