Skip to content

Commit 8c0f1e2

Browse files
authored
Add documentation for ActionCodeURL (#3933)
1 parent d4966cf commit 8c0f1e2

File tree

49 files changed

+171
-101
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+171
-101
lines changed

common/api-review/auth-exp.api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import { UserCredential } from '@firebase/auth-types-exp';
1717

1818
// @public (undocumented)
1919
export class ActionCodeURL implements externs.ActionCodeURL {
20+
// @internal
2021
constructor(actionLink: string);
2122
// (undocumented)
2223
readonly apiKey: string;

common/api-review/auth-types-exp.api.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,12 @@ export interface ActionCodeSettings {
4545

4646
// @public
4747
export abstract class ActionCodeURL {
48-
// (undocumented)
4948
readonly apiKey: string;
50-
// (undocumented)
5149
readonly code: string;
52-
// (undocumented)
5350
readonly continueUrl: string | null;
54-
// (undocumented)
5551
readonly languageCode: string | null;
56-
// (undocumented)
5752
readonly operation: Operation;
58-
// (undocumented)
5953
static parseLink(link: string): ActionCodeURL | null;
60-
// (undocumented)
6154
readonly tenantId: string | null;
6255
}
6356

@@ -116,7 +109,7 @@ export interface Auth {
116109
// (undocumented)
117110
useDeviceLanguage(): void;
118111
// (undocumented)
119-
useEmulator(hostname: string, port: number): void;
112+
useEmulator(url: string): void;
120113
}
121114

122115
// @public

docs-exp/auth-types.actioncodeurl.apikey.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
## ActionCodeURL.apiKey property
66

7+
The API key of the email action link.
8+
79
<b>Signature:</b>
810

911
```typescript

docs-exp/auth-types.actioncodeurl.code.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
## ActionCodeURL.code property
66

7+
The action code of the email action link.
8+
79
<b>Signature:</b>
810

911
```typescript

docs-exp/auth-types.actioncodeurl.continueurl.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
## ActionCodeURL.continueUrl property
66

7+
The continue URL of the email action link. Null if not provided.
8+
79
<b>Signature:</b>
810

911
```typescript

docs-exp/auth-types.actioncodeurl.languagecode.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
## ActionCodeURL.languageCode property
66

7+
The language code of the email action link. Null if not provided.
8+
79
<b>Signature:</b>
810

911
```typescript

docs-exp/auth-types.actioncodeurl.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
## ActionCodeURL class
66

7-
https://firebase.google.com/docs/reference/js/firebase.auth.ActionCodeURL
7+
A utility class to parse email action URLs such as password reset, email verification, email link sign in, etc.
88

99
<b>Signature:</b>
1010

@@ -16,16 +16,16 @@ export abstract class ActionCodeURL
1616

1717
| Property | Modifiers | Type | Description |
1818
| --- | --- | --- | --- |
19-
| [apiKey](./auth-types.actioncodeurl.apikey.md) | | string | |
20-
| [code](./auth-types.actioncodeurl.code.md) | | string | |
21-
| [continueUrl](./auth-types.actioncodeurl.continueurl.md) | | string \| null | |
22-
| [languageCode](./auth-types.actioncodeurl.languagecode.md) | | string \| null | |
23-
| [operation](./auth-types.actioncodeurl.operation.md) | | [Operation](./auth-types.operation.md) | |
24-
| [tenantId](./auth-types.actioncodeurl.tenantid.md) | | string \| null | |
19+
| [apiKey](./auth-types.actioncodeurl.apikey.md) | | string | The API key of the email action link. |
20+
| [code](./auth-types.actioncodeurl.code.md) | | string | The action code of the email action link. |
21+
| [continueUrl](./auth-types.actioncodeurl.continueurl.md) | | string \| null | The continue URL of the email action link. Null if not provided. |
22+
| [languageCode](./auth-types.actioncodeurl.languagecode.md) | | string \| null | The language code of the email action link. Null if not provided. |
23+
| [operation](./auth-types.actioncodeurl.operation.md) | | [Operation](./auth-types.operation.md) | The action performed by the email action link. It returns from one of the types from [ActionCodeInfo](./auth-types.actioncodeinfo.md) |
24+
| [tenantId](./auth-types.actioncodeurl.tenantid.md) | | string \| null | The tenant ID of the email action link. Null if the email action is from the parent project. |
2525

2626
## Methods
2727

2828
| Method | Modifiers | Description |
2929
| --- | --- | --- |
30-
| [parseLink(link)](./auth-types.actioncodeurl.parselink.md) | <code>static</code> | |
30+
| [parseLink(link)](./auth-types.actioncodeurl.parselink.md) | <code>static</code> | Parses the email action link string and returns an ActionCodeURL object if the link is valid, otherwise returns null. |
3131

docs-exp/auth-types.actioncodeurl.operation.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
## ActionCodeURL.operation property
66

7+
The action performed by the email action link. It returns from one of the types from [ActionCodeInfo](./auth-types.actioncodeinfo.md)
8+
79
<b>Signature:</b>
810

911
```typescript

docs-exp/auth-types.actioncodeurl.parselink.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
## ActionCodeURL.parseLink() method
66

7+
Parses the email action link string and returns an ActionCodeURL object if the link is valid, otherwise returns null.
8+
79
<b>Signature:</b>
810

911
```typescript
@@ -14,9 +16,11 @@ static parseLink(link: string): ActionCodeURL | null;
1416

1517
| Parameter | Type | Description |
1618
| --- | --- | --- |
17-
| link | string | |
19+
| link | string | The email action link string. |
1820

1921
<b>Returns:</b>
2022

2123
[ActionCodeURL](./auth-types.actioncodeurl.md) \| null
2224

25+
The ActionCodeURL object, or null if the link is invalid.
26+

docs-exp/auth-types.actioncodeurl.tenantid.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
## ActionCodeURL.tenantId property
66

7+
The tenant ID of the email action link. Null if the email action is from the parent project.
8+
79
<b>Signature:</b>
810

911
```typescript

docs-exp/auth-types.auth.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ export interface Auth
3333
| [signOut()](./auth-types.auth.signout.md) | |
3434
| [updateCurrentUser(user)](./auth-types.auth.updatecurrentuser.md) | |
3535
| [useDeviceLanguage()](./auth-types.auth.usedevicelanguage.md) | |
36-
| [useEmulator(hostname, port)](./auth-types.auth.useemulator.md) | |
36+
| [useEmulator(url)](./auth-types.auth.useemulator.md) | |
3737

docs-exp/auth-types.auth.useemulator.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,14 @@
77
<b>Signature:</b>
88

99
```typescript
10-
useEmulator(hostname: string, port: number): void;
10+
useEmulator(url: string): void;
1111
```
1212

1313
## Parameters
1414

1515
| Parameter | Type | Description |
1616
| --- | --- | --- |
17-
| hostname | string | |
18-
| port | number | |
17+
| url | string | |
1918

2019
<b>Returns:</b>
2120

docs-exp/auth-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
| Class | Description |
1010
| --- | --- |
11-
| [ActionCodeURL](./auth-types.actioncodeurl.md) | https://firebase.google.com/docs/reference/js/firebase.auth.ActionCodeURL |
11+
| [ActionCodeURL](./auth-types.actioncodeurl.md) | A utility class to parse email action URLs such as password reset, email verification, email link sign in, etc. |
1212
| [AuthCredential](./auth-types.authcredential.md) | https://firebase.google.com/docs/reference/js/firebase.auth.AuthCredential |
1313
| [EmailAuthProvider](./auth-types.emailauthprovider.md) | A provider for generating email &amp; password and email link credentials<!-- -->https://firebase.google.com/docs/reference/js/firebase.auth.EmailAuthProvider |
1414
| [MultiFactorResolver](./auth-types.multifactorresolver.md) | https://firebase.google.com/docs/reference/js/firebase.auth.multifactorresolver |

docs-exp/auth.actioncodeurl._constructor_.md

Lines changed: 0 additions & 20 deletions
This file was deleted.

docs-exp/auth.actioncodeurl.apikey.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
## ActionCodeURL.apiKey property
66

7+
The API key of the email action link.
8+
79
<b>Signature:</b>
810

911
```typescript

docs-exp/auth.actioncodeurl.code.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
## ActionCodeURL.code property
66

7+
The action code of the email action link.
8+
79
<b>Signature:</b>
810

911
```typescript

docs-exp/auth.actioncodeurl.continueurl.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
## ActionCodeURL.continueUrl property
66

7+
The continue URL of the email action link. Null if not provided.
8+
79
<b>Signature:</b>
810

911
```typescript

docs-exp/auth.actioncodeurl.languagecode.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
## ActionCodeURL.languageCode property
66

7+
The language code of the email action link. Null if not provided.
8+
79
<b>Signature:</b>
810

911
```typescript

docs-exp/auth.actioncodeurl.md

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,33 +4,29 @@
44

55
## ActionCodeURL class
66

7+
A utility class to parse email action URLs such as password reset, email verification, email link sign in, etc.
8+
79
<b>Signature:</b>
810

911
```typescript
1012
export declare class ActionCodeURL implements externs.ActionCodeURL
1113
```
1214
<b>Implements:</b> externs.[ActionCodeURL](./auth-types.actioncodeurl.md)
1315
14-
## Constructors
15-
16-
| Constructor | Modifiers | Description |
17-
| --- | --- | --- |
18-
| [(constructor)(actionLink)](./auth.actioncodeurl._constructor_.md) | | Constructs a new instance of the <code>ActionCodeURL</code> class |
19-
2016
## Properties
2117
2218
| Property | Modifiers | Type | Description |
2319
| --- | --- | --- | --- |
24-
| [apiKey](./auth.actioncodeurl.apikey.md) | | string | |
25-
| [code](./auth.actioncodeurl.code.md) | | string | |
26-
| [continueUrl](./auth.actioncodeurl.continueurl.md) | | string \| null | |
27-
| [languageCode](./auth.actioncodeurl.languagecode.md) | | string \| null | |
28-
| [operation](./auth.actioncodeurl.operation.md) | | externs.[Operation](./auth-types.operation.md) | |
29-
| [tenantId](./auth.actioncodeurl.tenantid.md) | | string \| null | |
20+
| [apiKey](./auth.actioncodeurl.apikey.md) | | string | The API key of the email action link. |
21+
| [code](./auth.actioncodeurl.code.md) | | string | The action code of the email action link. |
22+
| [continueUrl](./auth.actioncodeurl.continueurl.md) | | string \| null | The continue URL of the email action link. Null if not provided. |
23+
| [languageCode](./auth.actioncodeurl.languagecode.md) | | string \| null | The language code of the email action link. Null if not provided. |
24+
| [operation](./auth.actioncodeurl.operation.md) | | externs.[Operation](./auth-types.operation.md) | The action performed by the email action link. It returns from one of the types from |
25+
| [tenantId](./auth.actioncodeurl.tenantid.md) | | string \| null | The tenant ID of the email action link. Null if the email action is from the parent project. |
3026
3127
## Methods
3228
3329
| Method | Modifiers | Description |
3430
| --- | --- | --- |
35-
| [parseLink(link)](./auth.actioncodeurl.parselink.md) | <code>static</code> | |
31+
| [parseLink(link)](./auth.actioncodeurl.parselink.md) | <code>static</code> | Parses the email action link string and returns an ActionCodeURL object if the link is valid, otherwise returns null. |
3632

docs-exp/auth.actioncodeurl.operation.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
## ActionCodeURL.operation property
66

7+
The action performed by the email action link. It returns from one of the types from
8+
79
<b>Signature:</b>
810

911
```typescript

docs-exp/auth.actioncodeurl.parselink.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
## ActionCodeURL.parseLink() method
66

7+
Parses the email action link string and returns an ActionCodeURL object if the link is valid, otherwise returns null.
8+
79
<b>Signature:</b>
810

911
```typescript
@@ -14,9 +16,11 @@ static parseLink(link: string): externs.ActionCodeURL | null;
1416

1517
| Parameter | Type | Description |
1618
| --- | --- | --- |
17-
| link | string | |
19+
| link | string | The email action link string. |
1820

1921
<b>Returns:</b>
2022

2123
externs.[ActionCodeURL](./auth-types.actioncodeurl.md) \| null
2224

25+
The ActionCodeURL object, or null if the link is invalid.
26+

docs-exp/auth.actioncodeurl.tenantid.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
## ActionCodeURL.tenantId property
66

7+
The tenant ID of the email action link. Null if the email action is from the parent project.
8+
79
<b>Signature:</b>
810

911
```typescript

docs-exp/auth.authcredential._getidtokenresponse.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
<b>Signature:</b>
88

99
```typescript
10-
_getIdTokenResponse(_auth: AuthCore): Promise<PhoneOrOauthTokenResponse>;
10+
_getIdTokenResponse(_auth: Auth): Promise<PhoneOrOauthTokenResponse>;
1111
```
1212

1313
## Parameters
1414

1515
| Parameter | Type | Description |
1616
| --- | --- | --- |
17-
| \_auth | AuthCore | |
17+
| \_auth | Auth | |
1818

1919
<b>Returns:</b>
2020

docs-exp/auth.authcredential._getreauthenticationresolver.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
<b>Signature:</b>
88

99
```typescript
10-
_getReauthenticationResolver(_auth: AuthCore): Promise<IdTokenResponse>;
10+
_getReauthenticationResolver(_auth: Auth): Promise<IdTokenResponse>;
1111
```
1212

1313
## Parameters
1414

1515
| Parameter | Type | Description |
1616
| --- | --- | --- |
17-
| \_auth | AuthCore | |
17+
| \_auth | Auth | |
1818

1919
<b>Returns:</b>
2020

docs-exp/auth.authcredential._linktoidtoken.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
<b>Signature:</b>
88

99
```typescript
10-
_linkToIdToken(_auth: AuthCore, _idToken: string): Promise<IdTokenResponse>;
10+
_linkToIdToken(_auth: Auth, _idToken: string): Promise<IdTokenResponse>;
1111
```
1212

1313
## Parameters
1414

1515
| Parameter | Type | Description |
1616
| --- | --- | --- |
17-
| \_auth | AuthCore | |
17+
| \_auth | Auth | |
1818
| \_idToken | string | |
1919

2020
<b>Returns:</b>

docs-exp/auth.emailauthcredential._getidtokenresponse.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
<b>Signature:</b>
88

99
```typescript
10-
_getIdTokenResponse(auth: AuthCore): Promise<IdTokenResponse>;
10+
_getIdTokenResponse(auth: Auth): Promise<IdTokenResponse>;
1111
```
1212

1313
## Parameters
1414

1515
| Parameter | Type | Description |
1616
| --- | --- | --- |
17-
| auth | AuthCore | |
17+
| auth | Auth | |
1818

1919
<b>Returns:</b>
2020

0 commit comments

Comments
 (0)