I am using the
JwtAuthProvider to create tokens when authenticating users.
I then pass that token to backend services to verify and use, but I want the
Subject to be a custom generated App ID, not a incremental number.
(I also need to save registered users into a custom database (custom schema)).
It looks like I will need to create my own
IAuthRepository to get storing data the data in the form we need in our database.
However, how best to handle the custom UserId?
It is best to generate the custom ID in the
CustomAuthUserSession.OnRegister and save it as the
AuthUserId in the session? OR is there another way to change the
Session.AuthUserId to be what I need it to be, rather than it use the integer of the
IAuthUser coming from the IAuthRepository?