SimpleAuthentication icon indicating copy to clipboard operation
SimpleAuthentication copied to clipboard

CancellationToken parameter in asynchronous methods in JwtBearerService class

Open N1K0232 opened this issue 1 year ago • 0 comments

I gave a fast look at Microsoft.IdentityModel.JsonWebTokens repository and I noticed that the methods signature like ValidateTokenAsync method don't require the CancellationToken parameter.

However, even though Microsoft didn't add this parameter, isn't still a good practice to complete the asynchronous methods signature of the JwtBearerService class with the CancellationToken?

N1K0232 avatar Sep 10 '24 18:09 N1K0232