文档

支持

Authentication for Unreal Engine

Authentication for Unreal Engine

结构 AuthenticationResponse

Reference the data structure for authentication service responses.
阅读时间2 分钟最后更新于 4 天前

镜像来自 Unity Authentication 服务的 API 响应
Include(包括)
#include "Models/AuthenticationResponse.h"
语法
USTRUCT(BlueprintType)struct AUTHENTICATION_API FAuthenticationResponse

字段

WasSuccessful

响应是否成功。

声明

bool bWasSuccessful = false

蓝图

Name

类型

默认值

蓝图属性类型

蓝图属性类别

Was Successful(已成功)布尔值
false
BlueprintReadOnlyUnity Gaming Services(Unity 游戏服务)Authentication

C++

Name

类型

默认值

bWasSuccessful
bool
false

UserId

生成的用户 ID。

声明

FString UserId

蓝图

Name

类型

蓝图属性类型

蓝图属性类别

User Id(用户 ID)字符串BlueprintReadOnlyUnity Gaming Services(Unity 游戏服务)Authentication

C++

Name

类型

UserId
FString

AccessToken

生成的身份验证访问令牌。

声明

FString AccessToken

蓝图

Name

类型

蓝图属性类型

蓝图属性类别

Access Token(访问令牌)字符串BlueprintReadOnlyUnity Gaming Services(Unity 游戏服务)Authentication

C++

Name

类型

AccessToken
FString

SessionToken

生成的身份验证会话令牌。此令牌可用于让用户再次登录。

声明

FString SessionToken

蓝图

Name

类型

蓝图属性类型

蓝图属性类别

Session Token(会话令牌)字符串BlueprintReadOnlyUnity Gaming Services(Unity 游戏服务)Authentication

C++

Name

类型

SessionToken
FString

AuthorizedTime

发送响应的时间。

声明

FDateTime AuthorizedTime

蓝图

Name

类型

蓝图属性类型

蓝图属性类别

Authorized Time(授权时间)日期时间结构BlueprintReadOnlyUnity Gaming Services(Unity 游戏服务)Authentication

C++

Name

类型

AuthorizedTime
FDateTime

ExpiresIn

发送响应的时间。

声明

int32 ExpiresIn = 0

蓝图

Name

类型

默认值

蓝图属性类型

蓝图属性类别

Expires In(到期时间)整数
0
BlueprintReadOnlyUnity Gaming Services(Unity 游戏服务)Authentication

C++

Name

类型

默认值

ExpiresIn
int32
0