# 構造体 AuthenticationResponse

> Reference the data structure for authentication service responses.

[Unity Authentication Service からの API 応答](https://services.docs.unity.com/player-auth/v1/index.html#operation/ExternalTokenAuth) をミラーリングします。

##### Include (含める)##include

```cpp
#include "Models/AuthenticationResponse.h"
```

##### 構文##syntax

```cpp
USTRUCT(BlueprintType)
struct AUTHENTICATION_API FAuthenticationResponse
```

## フィールド##fields

### WasSuccessful##wassuccessful

応答が成功であったかどうか。

#### 宣言##declaration

```cpp
bool bWasSuccessful = false
```

#### Blueprint##blueprint

| **名前**         | **型**                                                                                                  | **初期値** | **Blueprint プロパティの種類** | **Blueprint プロパティのカテゴリ** |                |
| :------------- | :----------------------------------------------------------------------------------------------------- | :------ | :--------------------- | :----------------------- | -------------- |
| Was Successful | [Boolean](https://docs.unrealengine.com/5.3/en-US/blueprint-variables-in-unreal-engine/#variabletypes) | `false` | BlueprintReadOnly      | Unity Gaming Services    | Authentication |

#### C++##c++

| **名前**           | **型**  | **初期値** |
| :--------------- | :----- | :------ |
| `bWasSuccessful` | `bool` | `false` |

### UserId##userid

生成されたユーザー ID。

#### 宣言##declaration

```cpp
FString UserId
```

#### Blueprint##blueprint

| **名前**  | **型**                                                                                                 | **Blueprint プロパティの種類** | **Blueprint プロパティのカテゴリ** |                |
| :------ | :---------------------------------------------------------------------------------------------------- | :--------------------- | :----------------------- | -------------- |
| ユーザー ID | [String](https://docs.unrealengine.com/5.3/en-US/blueprint-variables-in-unreal-engine/#variabletypes) | BlueprintReadOnly      | Unity Gaming Services    | Authentication |

#### C++##c++

| **名前**   | **型**                                                                                   |
| :------- | :-------------------------------------------------------------------------------------- |
| `UserId` | [FString](https://docs.unrealengine.com/5.3/en-US/API/Runtime/Core/Containers/FString/) |

### AccessToken##accesstoken

生成された認証アクセストークン。

#### 宣言##declaration

```cpp
FString AccessToken
```

#### Blueprint##blueprint

| **名前**   | **型**                                                                                                 | **Blueprint プロパティの種類** | **Blueprint プロパティのカテゴリ** |                |
| :------- | :---------------------------------------------------------------------------------------------------- | :--------------------- | :----------------------- | -------------- |
| アクセストークン | [String](https://docs.unrealengine.com/5.3/en-US/blueprint-variables-in-unreal-engine/#variabletypes) | BlueprintReadOnly      | Unity Gaming Services    | Authentication |

#### C++##c++

| **名前**        | **型**                                                                                   |
| :------------ | :-------------------------------------------------------------------------------------- |
| `AccessToken` | [FString](https://docs.unrealengine.com/5.3/en-US/API/Runtime/Core/Containers/FString/) |

### SessionToken##sessiontoken

生成された認証セッショントークン。このトークンを使用してユーザーを再度サインインできます。

#### 宣言##declaration

```cpp
FString SessionToken
```

#### Blueprint##blueprint

| **名前**    | **型**                                                                                                 | **Blueprint プロパティの種類** | **Blueprint プロパティのカテゴリ** |                |
| :-------- | :---------------------------------------------------------------------------------------------------- | :--------------------- | :----------------------- | -------------- |
| セッショントークン | [String](https://docs.unrealengine.com/5.3/en-US/blueprint-variables-in-unreal-engine/#variabletypes) | BlueprintReadOnly      | Unity Gaming Services    | Authentication |

#### C++##c++

| **名前**         | **型**                                                                                   |
| :------------- | :-------------------------------------------------------------------------------------- |
| `SessionToken` | [FString](https://docs.unrealengine.com/5.3/en-US/API/Runtime/Core/Containers/FString/) |

### AuthorizedTime##authorizedtime

応答が送信された時刻。

#### 宣言##declaration

```cpp
FDateTime AuthorizedTime
```

#### Blueprint##blueprint

| **名前**          | **型**                                                                                                    | **Blueprint プロパティの種類** | **Blueprint プロパティのカテゴリ** |                |
| :-------------- | :------------------------------------------------------------------------------------------------------- | :--------------------- | :----------------------- | -------------- |
| Authorized Time | [日付と時刻の構造体](https://docs.unrealengine.com/5.3/en-US/blueprint-variables-in-unreal-engine/#variabletypes) | BlueprintReadOnly      | Unity Gaming Services    | Authentication |

#### C++##c++

| **名前**           | **型**                                                                                 |
| :--------------- | :------------------------------------------------------------------------------------ |
| `AuthorizedTime` | [FDateTime](https://docs.unrealengine.com/5.3/en-US/API/Runtime/Core/Misc/FDateTime/) |

### ExpiresIn##expiresin

応答が送信された時刻。

#### 宣言##declaration

```cpp
int32 ExpiresIn = 0
```

#### Blueprint##blueprint

| **名前**     | **型**                                                                                             | **初期値** | **Blueprint プロパティの種類** | **Blueprint プロパティのカテゴリ** |                |
| :--------- | :------------------------------------------------------------------------------------------------ | :------ | :--------------------- | :----------------------- | -------------- |
| Expires In | [整数](https://docs.unrealengine.com/5.3/en-US/blueprint-variables-in-unreal-engine/#variabletypes) | `0`     | BlueprintReadOnly      | Unity Gaming Services    | Authentication |

#### C++##c++

| **名前**      | **型**                                                                                                          | **初期値** |
| :---------- | :------------------------------------------------------------------------------------------------------------- | :------ |
| `ExpiresIn` | [int32](https://docs.unrealengine.com/5.3/en-US/API/Runtime/Core/GenericPlatform/FGenericPlatformTypes/int32/) | `0`     |
