> Documentation index: https://firebase.google.com/docs/reference/cpp/llms.txt

# firebase::auth::IdTokenResult


`#include <user.h>`

Result of a GetIdTokenResult call, containing the token string and decoded claims.

## Summary

| ### Constructors and Destructors ||
|---|---|
| `IdTokenResult()` Default constructor for [IdTokenResult](https://firebase.google.com/docs/reference/cpp/struct/firebase/auth/id-token-result.md.txt#structfirebase_1_1auth_1_1_id_token_result). ||

| ### Public attributes ||
|---|---|
| `auth_timestamp` | `uint64_t` Authentication timestamp (seconds since Unix epoch). |
| `claims` | `std::map< Variant, Variant >` Claims map decoded from the token payload, including custom claims and standard claims. |
| `expiration_timestamp` | `uint64_t` Expiration timestamp (seconds since Unix epoch). |
| `issued_at_timestamp` | `uint64_t` Issued-at timestamp (seconds since Unix epoch). |
| `sign_in_provider` | `std::string` The sign-in provider through which the token was obtained. |
| `sign_in_second_factor` | `std::string` The sign-in second factor through which the token was obtained. |
| `token` | `std::string` The JSON Web Token (JWT) string. |

| ### Public functions ||
|---|---|
| `operator!=(const IdTokenResult & other) const ` | `bool` Inequality operator. |
| `operator==(const IdTokenResult & other) const ` | `bool` Equality operator. |

## Public attributes

### auth_timestamp

```c++
uint64_t firebase::auth::IdTokenResult::auth_timestamp
```
Authentication timestamp (seconds since Unix epoch).

### claims

```c++
std::map< Variant, Variant > firebase::auth::IdTokenResult::claims
```
Claims map decoded from the token payload, including custom claims and standard claims.

### expiration_timestamp

```c++
uint64_t firebase::auth::IdTokenResult::expiration_timestamp
```
Expiration timestamp (seconds since Unix epoch).

### issued_at_timestamp

```c++
uint64_t firebase::auth::IdTokenResult::issued_at_timestamp
```
Issued-at timestamp (seconds since Unix epoch).

### sign_in_provider

```c++
std::string firebase::auth::IdTokenResult::sign_in_provider
```
The sign-in provider through which the token was obtained.

### sign_in_second_factor

```c++
std::string firebase::auth::IdTokenResult::sign_in_second_factor
```
The sign-in second factor through which the token was obtained.

### token

```c++
std::string firebase::auth::IdTokenResult::token
```
The JSON Web Token (JWT) string.

## Public functions

### IdTokenResult

```c++
 firebase::auth::IdTokenResult::IdTokenResult()
```
Default constructor for [IdTokenResult](https://firebase.google.com/docs/reference/cpp/struct/firebase/auth/id-token-result.md.txt#structfirebase_1_1auth_1_1_id_token_result).

### operator!=

```c++
bool firebase::auth::IdTokenResult::operator!=(
  const IdTokenResult & other
) const 
```
Inequality operator.


Details Parameters `other` The other [IdTokenResult](https://firebase.google.com/docs/reference/cpp/struct/firebase/auth/id-token-result.md.txt#structfirebase_1_1auth_1_1_id_token_result) to compare with. **Returns** true if any field differs, false otherwise.

### operator==

```c++
bool firebase::auth::IdTokenResult::operator==(
  const IdTokenResult & other
) const 
```
Equality operator.


Details Parameters `other` The other [IdTokenResult](https://firebase.google.com/docs/reference/cpp/struct/firebase/auth/id-token-result.md.txt#structfirebase_1_1auth_1_1_id_token_result) to compare with. **Returns** true if all fields match, false otherwise.