I am generating a JWT token when a user registers on the site using
auth.authenticator('jwt').generate(user). That works fine.
I also want to be able to create tokens for each user when using the UserSeeder.
I’m not sure how I can approach this. Where do I get the
auth object from? Any help would be appreciated.