From 9b40610f26dd31920875947825f09986a0688367 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Johannes=20L=C3=B6thberg?= <johannes@kyriasis.com>
Date: Tue, 2 Apr 2024 19:31:44 +0200
Subject: [PATCH] Bump GoCardless access validity from 30 to 90 days (#2518)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

All banks are supposed to provide at least 90 days of access.

As of July 2023 EEA banks are required to allow access for up to 180
days[0], but this does not apply to UK banks, and apparently there might
still be EEA banks which don't comply with the new regulations.

We should consider eventually defaulting to 180 days and allowing
per-bank and maybe per-country overrides, but bumping it to 90 days
immediately provides a better user experience.

  [0]: https://nordigen.zendesk.com/hc/en-gb/articles/13239212055581-EEA-180-day-access

Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
---
 packages/desktop-client/src/gocardless.ts | 2 +-
 upcoming-release-notes/2518.md            | 6 ++++++
 2 files changed, 7 insertions(+), 1 deletion(-)
 create mode 100644 upcoming-release-notes/2518.md

diff --git a/packages/desktop-client/src/gocardless.ts b/packages/desktop-client/src/gocardless.ts
index 8277f18da..5543d0b33 100644
--- a/packages/desktop-client/src/gocardless.ts
+++ b/packages/desktop-client/src/gocardless.ts
@@ -18,7 +18,7 @@ function _authorize(
       const resp = await send('gocardless-create-web-token', {
         upgradingAccountId,
         institutionId,
-        accessValidForDays: 30,
+        accessValidForDays: 90,
       });
 
       if ('error' in resp) return resp;
diff --git a/upcoming-release-notes/2518.md b/upcoming-release-notes/2518.md
new file mode 100644
index 000000000..e410f7e95
--- /dev/null
+++ b/upcoming-release-notes/2518.md
@@ -0,0 +1,6 @@
+---
+category: Enhancements
+authors: [kyrias]
+---
+
+Bump GoCardless access validity from 30 to 90 days.
-- 
GitLab