19 lines
593 B
C#
19 lines
593 B
C#
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);
|
|
}
|
|
} |