If I'm understanding correctly, you are using this package:
https://jwt-auth.readthedocs.io/en/stable/quick-start/
Here, you can see the modifications to the User model, I can't see if you did that. Also did you configure auth.php to use the jwt driver for api guard?