( email: string, token: string, signal?: AbortSignal )
| 16 | } |
| 17 | |
| 18 | async function fetchUnsubscribe( |
| 19 | email: string, |
| 20 | token: string, |
| 21 | signal?: AbortSignal |
| 22 | ): Promise<UnsubscribeData> { |
| 23 | return requestJson(unsubscribeGetContract, { query: { email, token }, signal }) |
| 24 | } |
| 25 | |
| 26 | /** |
| 27 | * Validates an unsubscribe link and loads the recipient's current email preferences. |
no test coverage detected