我正在使用 .NET 5、ASP.NET Core 5 Web API 和 ASP.NET Core Identity。我有一个 JWT 令牌:
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJFbWFpbCI6ImR1Y3R4QG1wc29sdXRpb25zLmlvIiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvbmFtZWlkZW50aWZpZXIiOiJiM2E2ZTI5Zi1hZjdjLTRhZmUtYjA4Ni1jYmVjMjAzOTYxYmUiLCJleHAiOjE2MDE4ODk4OTksImlzcyI6Imh0dHA6Ly9tcHNvbHV0aW9ucy5pbyIsImF1ZCI6Imh0dHA6Ly9tcHNvbHV0aW9ucy5pbyJ9.0HmUptS8_VMPuYXMlSwfafhusiYPfyOPPaiSo6uSOMs
Run Code Online (Sandbox Code Playgroud)
我需要获取电子邮件字符串foo@example.com。如何在 C# 中解码 JWT 令牌,然后获取电子邮件字符串?
我是Angular 2和Type脚本的新手。在我的项目中,我正在使用PrimeNG UI控件。
运行我的APP时,控制台出现以下错误。
错误:加载http:// localhost:xxxxx / @ angular / animations时出现(SystemJS)XHR错误(404未找到)
从http:// localhost:xxxxx / node_modules // primeng / components / accordion / accordion.js加载http:// localhost:xxxxx / @ angular / animations作为“ @ angular / animations”时出错
下面是我的Systemjs.config.js文件
/**
* System configuration for Angular samples
* Adjust as necessary for your application needs.
*/
(function (global) {
System.config({
paths: {
// paths serve as alias
'npm:': 'node_modules/'
},
// map tells the System loader where to look …Run Code Online (Sandbox Code Playgroud)