You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
x.DefaultAuthenticateScheme=JwtBearerDefaults.AuthenticationScheme;// here we need to install a nuget package 'using Microsoft.AspNetCore.Authentication.JwtBearer'.
41
+
x.DefaultChallengeScheme=JwtBearerDefaults.AuthenticationScheme;// package website link 'https://www.nuget.org/packages/Microsoft.AspNetCore.Authentication.JwtBearer/3.0.0'
42
+
}).AddJwtBearer(x =>
43
+
{
44
+
x.RequireHttpsMetadata=false;
45
+
x.SaveToken=true;
46
+
x.TokenValidationParameters=newTokenValidationParameters// using Microsoft.IdentityModel.Tokens
0 commit comments