How to setup json webtoken?

Can anyone explain how to set this up so that when a user logins the authentication is correctly sent to my api via n8n?