fix jip token

This commit is contained in:
2024-11-26 16:06:59 +08:00
parent b1292e4653
commit 1f273986e0
2 changed files with 3 additions and 17 deletions

View File

@@ -42,6 +42,8 @@ public class JipTokenHandler : IAsyncAuthTokenHandler
var jwtHandler = new JwtSecurityTokenHandler();
var securityToken = jwtHandler.CreateToken(descriptor);
return await Task.FromResult(jwtHandler.WriteToken(securityToken));
var token = await Task.FromResult(jwtHandler.WriteToken(securityToken));
return "Bearer " + token;
}
}