UserIP or Header to token

Hi. Please suggest the possibility of adding information about the user’s IP to the token, or forwarding a header to the token. The idea is for the client to know that the user came from a specific network and sort his requests. Accordingly, the user’s IP is known, or I can add any header with any value

You can implement an authenticator, which saves the users IP address to the user session, then, having the existing token mapper to map a session note to the token.