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
// here I used JwtSecurityTokenHandler class which will handle this token. This Class can be found on the 'nuget packages Library' which is made by Microsoft
49
+
// website link 'https://www.nuget.org/packages/System.IdentityModel.Tokens.Jwt/'
50
+
// As a result, we need to install the Library to this project because by default dotnet core framework dont implement it
51
+
// so I need to install it from the terminal because I am doing this project from linux . Also I am using the VS code not the visual studio.
52
+
53
+
// From terminal we need to run this command ' dotnet add package System.IdentityModel.Tokens.Jwt --version 6.5.1'
54
+
// After installing the Library we need to call that into this file
55
+
// thats why I used 'using System.IdentityModel.Tokens.Jwt;'
56
+
vartokenHandler=newJwtSecurityTokenHandler();
57
+
58
+
// As I mentioned earlier this token should be encrypted key
59
+
// thats why I am using this procedure.
60
+
vartokenKey=Encoding.ASCII.GetBytes(key);// called the 'using System.Text;' for recognisiing the 'Encoding'
0 commit comments