Sometimes my authentication with git on Windows is lost? I guess it happens after x amount of time has passed.
When it happens the command (fetch, pull, push etc) will fail with a error, but if I run the command immediately again it works.
How can I resolve this? I use HTTPS (not SSH) for communicating with Gitea.
Is it a setting somewhere within Gitea or is this a Git issue?
I found this setting here Config Cheat Sheet | Gitea Documentation
Increasing ACCESS_TOKEN_EXPIRATION_TIME to 24 hours from 1 hour does improve it.
It happens way less often now and it works for me.
That is my guess as well, but since I’ve increase the value of ACCESS_TOKEN_EXPIRATION_TIME it’s barely noticeable for me at least
And I really like Gitea and will continue to use it.
Sure it would be nice if the refresh worked without first failing. I don’t know where the “issue” lies, is it within Gitea or the app that Git for Windows uses that you authorize?
I also see this issue.
Is there a solution to this, or a fix scheduled?
Given it was reported 10 months ago, I’d expect it to at-least have been triaged.
It’s annoying enough that I’m considering switching to Gitlab if it won’t be acknowledged/fixed.
Environment
Gitea Server: Gitea Docker image, hosted on Debian
Client: Git for windows via Visual Studio 2022 on Windows 11
Using default authentication settings.