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>
    /// <param name="region">账号所属地区</param>
    /// <returns></returns>
    public static string GetToken(Scene scene, long aId, string address, uint sceneId, int region)
    {
        return scene.GetComponent<AuthenticationJwtComponent>().GetToken(aId, address, sceneId, region);
    }
}