ASP.net has many approach how to implement token authentication without need of user.
For me I want a direct approach to do this as my first time to implement this still searching for the right middleware approach as of now but hoping everyone can help.
I am needed to add a 24 hr session to my application which require check token every request if token is expired should return 401
as my first time to implement in asp.net core 2.1 I want to ask your help if how I could implement that in the back end
when user is created the token is given and every request my middleware should check how many time left before the token expire
Any help would be appreciated