Authentication with JWT

Hi I want to authenticate a user with JWT. Once I receive a JWT I will call a service that will validate the JWT and will retrieve user’s attributes. Seems like keycloak needs the user to be registered (I can do that by calling context.getSession().users().addUser()), but I don’t want to store the user in the DB. Is there a way to avoid that?