Generate JWT Token for logged in user?

Viewed 128

I have a razor pages app [username and password auth] and a WebAPI app that uses JWT auth. Both the services use the same user table. After user proceeds to checkout on the Razor pages app, I need to call an API in the WebAPI that that requires JWT. How can I generate this token for a logged in user in my razor pages app ?

1 Answers
Related