Nextcloud desktop client constantly asking for authorisation on each login - Fedora 40

Nextcloud version (desktop client): 3.12.3
Operating system and version: Fedora 40

The issue you are facing:
Every time I log in I need to re-authorise my Nextcloud Desktop client in the browser. This did not happen in Fedora 39 and is only happening now that I have upgraded to Fedora 40.

Is this the first time you’ve seen this error? : Y

Steps to replicate it:

  1. Start computer
  2. Log in