# 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)

*** ** * ** ***


```
class OAuthResponse
```

<br />

*** ** * ** ***

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

## Summary

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

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/wear/phone/interactions/authentication/OAuthResponse#errorCode()` The error code that indicated the request result status. |
| `https://developer.android.com/reference/android/net/Uri.html?` | `https://developer.android.com/reference/kotlin/androidx/wear/phone/interactions/authentication/OAuthResponse#responseUrl()` The Url of the auth response. |

## Public properties

### errorCode

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

```
val errorCode: Int
```

The error code that indicated the request result status.

Value is one of the following:

- `-1`
- `0`
- `1`

<br />

### responseUrl

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

```
val responseUrl: Uri?
```

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