# OAuthResponse

Artifact: [androidx.wear:wear-phone-interactions](https://developer.android.com/jetpack/androidx/releases/wear) [View Source](https://cs.android.com/search?q=file:androidx/wear/phone/interactions/authentication/OAuthResponse.kt+class:androidx.wear.phone.interactions.authentication.OAuthResponse) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear#1.0.0)

*** ** * ** ***


```
public final class OAuthResponse
```

<br />

*** ** * ** ***

The authentication response to be sent back to the client after completing the OAuth2 flow.

## Summary

| ### Nested types |
|---|
| `public final class https://developer.android.com/reference/androidx/wear/phone/interactions/authentication/OAuthResponse.Builder` Builder for constructing new instance of authentication response. |

| ### Public methods |
|---|---|
| `final int` | `https://developer.android.com/reference/androidx/wear/phone/interactions/authentication/OAuthResponse#getErrorCode()()` The error code that indicated the request result status. |
| `final https://developer.android.com/reference/android/net/Uri.html` | `https://developer.android.com/reference/androidx/wear/phone/interactions/authentication/OAuthResponse#getResponseUrl()()` The Url of the auth response. |

## Public methods

### getErrorCode

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear#1.0.0)

```
public final int getErrorCode()
```

The error code that indicated the request result status.

### getResponseUrl

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear#1.0.0)

```
public final Uri getResponseUrl()
```

The Url of the auth response. In case of an error it will be null.