<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@firebase/auth](./auth.md) &gt; [ActionCodeURL](./auth.actioncodeurl.md) &gt; [parseLink](./auth.actioncodeurl.parselink.md)

## ActionCodeURL.parseLink() method

Parses the email action link string and returns an [ActionCodeURL](./auth.actioncodeurl.md) if the link is valid, otherwise returns null.

<b>Signature:</b>

```typescript
static parseLink(link: string): ActionCodeURL | null;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  link | string | The email action link string. |

<b>Returns:</b>

[ActionCodeURL](./auth.actioncodeurl.md) \| null

The ActionCodeURL object, or null if the link is invalid.

