# AuthTabIntent.AuthResult

Artifact: [androidx.browser:browser](https://developer.android.com/jetpack/androidx/releases/browser) [View Source](https://cs.android.com/search?q=file:androidx/browser/auth/AuthTabIntent.java+class:androidx.browser.auth.AuthTabIntent.AuthResult) Added in [1.9.0](https://developer.android.com/jetpack/androidx/releases/browser#1.9.0)

*** ** * ** ***


```
public final class AuthTabIntent.AuthResult
```

<br />

*** ** * ** ***

Class containing Auth Tab result data. This class must be the result type of the `https://developer.android.com/reference/androidx/activity/result/ActivityResultCallback` passed to `https://developer.android.com/reference/androidx/browser/auth/AuthTabIntent#registerActivityResultLauncher(androidx.activity.result.ActivityResultCaller,androidx.activity.result.ActivityResultCallback<androidx.browser.auth.AuthTabIntent.AuthResult>)`.

Valid \`resultCode\`s are RESULT_OK, RESULT_CANCELED, RESULT_VERIFICATION_FAILED and RESULT_VERIFICATION_TIMED_OUT.

## Summary

| ### Public fields |
|---|---|
| `final int` | `https://developer.android.com/reference/androidx/browser/auth/AuthTabIntent.AuthResult#resultCode()` Result code of the Auth Tab. |
| `final @https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/net/Uri.html` | `https://developer.android.com/reference/androidx/browser/auth/AuthTabIntent.AuthResult#resultUri()` The `https://developer.android.com/reference/android/net/Uri.html` containing the Auth Tab result data. |

## Public fields

### resultCode

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

```
public final int resultCode
```

Result code of the Auth Tab. If an invalid or unknown code was returned by the Auth Tab, this will be RESULT_UNKNOWN_CODE.

### resultUri

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

```
public final @Nullable Uri resultUri
```

The `https://developer.android.com/reference/android/net/Uri.html` containing the Auth Tab result data. Null if the \`resultCode\` isn't RESULT_OK.