Skip to content

Commit f1509da

Browse files
committed
Fix unit test and run yarn docgen:all
1 parent df70b65 commit f1509da

File tree

5 files changed

+57
-1
lines changed

5 files changed

+57
-1
lines changed

docs-devsite/_toc.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,8 @@ toc:
246246
path: /docs/reference/js/auth.emulatorconfig.md
247247
- title: FacebookAuthProvider
248248
path: /docs/reference/js/auth.facebookauthprovider.md
249+
- title: FirebaseToken
250+
path: /docs/reference/js/auth.firebasetoken.md
249251
- title: GithubAuthProvider
250252
path: /docs/reference/js/auth.githubauthprovider.md
251253
- title: GoogleAuthProvider

docs-devsite/auth.auth.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export interface Auth
2828
| [config](./auth.auth.md#authconfig) | [Config](./auth.config.md#config_interface) | The [Config](./auth.config.md#config_interface) used to initialize this instance. |
2929
| [currentUser](./auth.auth.md#authcurrentuser) | [User](./auth.user.md#user_interface) \| null | The currently signed-in user (or null). |
3030
| [emulatorConfig](./auth.auth.md#authemulatorconfig) | [EmulatorConfig](./auth.emulatorconfig.md#emulatorconfig_interface) \| null | The current emulator configuration (or null). |
31+
| [firebaseToken](./auth.auth.md#authfirebasetoken) | [FirebaseToken](./auth.firebasetoken.md#firebasetoken_interface) \| null | The token response initialized via [exchangeToken()](./auth.md#exchangetoken_b6b1871) endpoint. |
3132
| [languageCode](./auth.auth.md#authlanguagecode) | string \| null | The [Auth](./auth.auth.md#auth_interface) instance's language code. |
3233
| [name](./auth.auth.md#authname) | string | The name of the app associated with the <code>Auth</code> service instance. |
3334
| [settings](./auth.auth.md#authsettings) | [AuthSettings](./auth.authsettings.md#authsettings_interface) | The [Auth](./auth.auth.md#auth_interface) instance's settings. |
@@ -87,6 +88,18 @@ The current emulator configuration (or null).
8788
readonly emulatorConfig: EmulatorConfig | null;
8889
```
8990

91+
## Auth.firebaseToken
92+
93+
The token response initialized via [exchangeToken()](./auth.md#exchangetoken_b6b1871) endpoint.
94+
95+
This field is only supported for [Auth](./auth.auth.md#auth_interface) instance that have defined [TenantConfig](./auth.tenantconfig.md#tenantconfig_interface)<!-- -->.
96+
97+
<b>Signature:</b>
98+
99+
```typescript
100+
readonly firebaseToken: FirebaseToken | null;
101+
```
102+
90103
## Auth.languageCode
91104

92105
The [Auth](./auth.auth.md#auth_interface) instance's language code.

docs-devsite/auth.firebasetoken.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
Project: /docs/reference/js/_project.yaml
2+
Book: /docs/reference/_book.yaml
3+
page_type: reference
4+
5+
{% comment %}
6+
DO NOT EDIT THIS FILE!
7+
This is generated by the JS SDK team, and any local changes will be
8+
overwritten. Changes should be made in the source code at
9+
https://github.com/firebase/firebase-js-sdk
10+
{% endcomment %}
11+
12+
# FirebaseToken interface
13+
<b>Signature:</b>
14+
15+
```typescript
16+
export interface FirebaseToken
17+
```
18+
19+
## Properties
20+
21+
| Property | Type | Description |
22+
| --- | --- | --- |
23+
| [expirationTime](./auth.firebasetoken.md#firebasetokenexpirationtime) | number | |
24+
| [token](./auth.firebasetoken.md#firebasetokentoken) | string | |
25+
26+
## FirebaseToken.expirationTime
27+
28+
<b>Signature:</b>
29+
30+
```typescript
31+
readonly expirationTime: number;
32+
```
33+
34+
## FirebaseToken.token
35+
36+
<b>Signature:</b>
37+
38+
```typescript
39+
readonly token: string;
40+
```

docs-devsite/auth.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ Firebase Authentication
118118
| [ConfirmationResult](./auth.confirmationresult.md#confirmationresult_interface) | A result from a phone number sign-in, link, or reauthenticate call. |
119119
| [Dependencies](./auth.dependencies.md#dependencies_interface) | The dependencies that can be used to initialize an [Auth](./auth.auth.md#auth_interface) instance. |
120120
| [EmulatorConfig](./auth.emulatorconfig.md#emulatorconfig_interface) | Configuration of Firebase Authentication Emulator. |
121+
| [FirebaseToken](./auth.firebasetoken.md#firebasetoken_interface) | |
121122
| [IdTokenResult](./auth.idtokenresult.md#idtokenresult_interface) | Interface representing ID token result obtained from [User.getIdTokenResult()](./auth.user.md#usergetidtokenresult)<!-- -->. |
122123
| [MultiFactorAssertion](./auth.multifactorassertion.md#multifactorassertion_interface) | The base class for asserting ownership of a second factor. |
123124
| [MultiFactorError](./auth.multifactorerror.md#multifactorerror_interface) | The error thrown when the user needs to provide a second factor to sign in successfully. |

packages/auth/src/core/strategies/exchange_token.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ describe('core/strategies/exchangeToken', () => {
5252
const mock = mockRegionalEndpointWithParent(
5353
RegionalEndpoint.EXCHANGE_TOKEN,
5454
'projects/test-project-id/locations/us/tenants/tenant-1/idpConfigs/idp-config',
55-
{ accessToken: 'outbound-token', expiresIn: 10000 }
55+
{ accessToken: 'outbound-token', expiresIn: 10 }
5656
);
5757

5858
const accessToken = await exchangeToken(

0 commit comments

Comments
 (0)