修改协议工具
This commit is contained in:
19
Hotfix/Authentication/System/Jwt/AuthenticationJwtHelper.cs
Normal file
19
Hotfix/Authentication/System/Jwt/AuthenticationJwtHelper.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using Fantasy;
|
||||
|
||||
namespace NB.Authentication.Jwt;
|
||||
|
||||
public static class AuthenticationJwtHelper
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取一个新的令牌
|
||||
/// </summary>
|
||||
/// <param name="scene"></param>
|
||||
/// <param name="aId">AccountId</param>
|
||||
/// <param name="address">目标服务器的地址</param>
|
||||
/// <param name="sceneId">分配的Scene的Id</param>
|
||||
/// <returns></returns>
|
||||
public static string GetToken(Scene scene, long aId, string address, uint sceneId)
|
||||
{
|
||||
return scene.GetComponent<AuthenticationJwtComponent>().GetToken(aId, address, sceneId);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user