Nextcloud Desktop doesnt connect

Hi!
I have nextcloud on my server and on my desktop to sync data between. When I open the link to grant access it says successful then the desktop app says try again. Ive updated my nextcloud website to the latest version, same with the desktop app and this hasnt fixed anything. Does anyone know how to fix this?

Thanks,
Kian