<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@firebase/auth](./auth.md) &gt; [parseActionCodeURL](./auth.parseactioncodeurl.md)

## parseActionCodeURL() function

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
export declare function parseActionCodeURL(link: string): ActionCodeURL | null;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  link | string |  |

<b>Returns:</b>

[ActionCodeURL](./auth.actioncodeurl.md) \| null

