> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XGameUiWebAuthenticationResultData

> XGameUiWebAuthenticationResultData

# XGameUiWebAuthenticationResultData

Contains the response from a web authentication request.

## Syntax

```cpp theme={null}
typedef struct XGameUiWebAuthenticationResultData {  
    HRESULT responseStatus ;  
    size_t responseCompletionUriSize;  
    const char* responseCompletionUri;  
} XGameUiWebAuthenticationResultData  
```

### Members

*responseStatus*
Type: HRESULT

Indicates the status of the web view authentication. `S_OK` if successful, or `E_CANCELLED` if the user manually closed the web view by hitting the back button.

*responseCompletionUriSize*\
Type: size\_t

The size, in bytes, of the response data, which is stored in *responseCompletionUri*.

*responseCompletionUri*\
Type: const char\*

The complete response data, which is contained in a URI format.

## Remarks

You can access this structure after calling [XGameUiShowWebAuthenticationResult](/reference/system/xgameui/functions/xgameuishowwebauthenticationresult).

You can check the *responseStatus* field to see if the authorization request was successful or not. The field will contain `S_OK` if the authentication browser successfully navigated to the completion URI, otherwise it will contain `E_CANCELLED` to indicate that the user cancelled by pressing back.

If the authorization request was successful then the response data contains the base callback URI and any parameters that the OAuth provider added on as a result of authenticating the user (access token, expiration time, etc.)

If the authorization request was cancelled, the response data will be a null string.

## Requirements

**Header:** XGameUI.h

**Supported platforms:** Windows, XBOX One family consoles and XBOX Series consoles

## See also

[XGameUI](/reference/system/xgameui/xgameui_members)\
[XGameUiShowWebAuthenticationAsync](/reference/system/xgameui/functions/xgameuishowwebauthenticationasync)\
[XGameUiShowWebAuthenticationResultSize](/reference/system/xgameui/functions/xgameuishowwebauthenticationresultsize)\
[XGameUiShowWebAuthenticationResult](/reference/system/xgameui/functions/xgameuishowwebauthenticationresult)\
[Asynchronous Programming Model](/build/core-features/common/async/async-programming-model)


## Related topics

- [XGameUiShowWebAuthenticationResult](/reference/system/xgameui/functions/xgameuishowwebauthenticationresult.md)
- [XGameUiShowWebAuthenticationResultSize](/reference/system/xgameui/functions/xgameuishowwebauthenticationresultsize.md)
- [XGameUiShowWebAuthenticationAsync](/reference/system/xgameui/functions/xgameuishowwebauthenticationasync.md)
- [XGameUiShowWebAuthenticationWithOptionsAsync](/reference/system/xgameui/functions/xgameuishowwebauthenticationwithoptionsasync.md)
- [XGameUI](/reference/system/xgameui/xgameui_members.md)
