[GH-ISSUE #3863] Always need to re-authenticate login #7594

Open
opened 2026-08-05 01:13:39 -04:00 by saavagebueno · 5 comments
Owner

Originally created by @xhwwstudio on GitHub (May 22, 2025).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/3863

Wǒ zài win server xià shǐyòng netbird. Zài wǒ dēnglù chénggōng hòu, yīduàn shíjiān hòu huì líxiàn, xūyào chóngxīn dēnglù yànzhèng cáinéng liánjiē. Qǐngwèn yǒu shé me bànfǎ néng ràng netbird yīzhí zàixiàn ma? Yīnwèi zhè yǐngxiǎng shǐyòngle. Xièxiè.
88 / 5,000
I use Netbird under Windows Server. After I log in successfully, it will go offline after a while and I need to log in again to connect. Is there any way to make Netbird always online? Because it affects the use. Thank you.

Originally created by @xhwwstudio on GitHub (May 22, 2025). Original GitHub issue: https://github.com/netbirdio/netbird/issues/3863 Wǒ zài win server xià shǐyòng netbird. Zài wǒ dēnglù chénggōng hòu, yīduàn shíjiān hòu huì líxiàn, xūyào chóngxīn dēnglù yànzhèng cáinéng liánjiē. Qǐngwèn yǒu shé me bànfǎ néng ràng netbird yīzhí zàixiàn ma? Yīnwèi zhè yǐngxiǎng shǐyòngle. Xièxiè. 88 / 5,000 I use Netbird under Windows Server. After I log in successfully, it will go offline after a while and I need to log in again to connect. Is there any way to make Netbird always online? Because it affects the use. Thank you.
saavagebueno added the triage-needed label 2026-08-05 01:13:39 -04:00
Author
Owner

@Nordlicht-13 commented on GitHub (May 26, 2025):

I also have the problem that netbird is leaving connection unter Windows an Android sometimes.

<!-- gh-comment-id:2909008897 --> @Nordlicht-13 commented on GitHub (May 26, 2025): I also have the problem that netbird is leaving connection unter Windows an Android sometimes.
Author
Owner

@praneetloke commented on GitHub (Feb 11, 2026):

I use Netbird on Android, Windows and macOS. I have seen this issue consistently on all three platforms. Something tells me that Netbird isn't either persisting offline_access refresh tokens properly or isn't requesting offline_access OAuth2 scope at all. I use a Google account to login.

<!-- gh-comment-id:3885678232 --> @praneetloke commented on GitHub (Feb 11, 2026): I use Netbird on Android, Windows and macOS. I have seen this issue consistently on all three platforms. Something tells me that Netbird isn't either persisting `offline_access` refresh tokens properly or isn't requesting `offline_access` OAuth2 scope at all. I use a Google account to login.
Author
Owner

@cheetah747 commented on GitHub (Feb 17, 2026):

I have the same problem on the latest self-host netbird。

<!-- gh-comment-id:3914472419 --> @cheetah747 commented on GitHub (Feb 17, 2026): I have the same problem on the latest self-host netbird。
Author
Owner

@cheetah747 commented on GitHub (Feb 17, 2026):

from https://github.com/netbirdio/netbird/issues/5336, I found that we can deal with this problem by Disabling Local Auth. The documents doesn't tell us how to set the config.yaml to disable local auth, but we can append this to disable local auth:

server:
  auth:
    localAuthDisabled: true

then restart the dockers and we don't need to re-authenticate no more.

<!-- gh-comment-id:3914510097 --> @cheetah747 commented on GitHub (Feb 17, 2026): from https://github.com/netbirdio/netbird/issues/5336, I found that we can deal with this problem by Disabling Local Auth. The documents doesn't tell us how to set the config.yaml to disable local auth, but we can append this to disable local auth: ``` server: auth: localAuthDisabled: true ``` then restart the dockers and we don't need to re-authenticate no more.
Author
Owner

@praneetloke commented on GitHub (Mar 18, 2026):

It turns out that there is a setting for forcing peer re-authentication: https://docs.netbird.io/manage/settings/enforce-periodic-user-authentication?form=msp. After I updated this setting, I no longer need to re-authenticate often, which is 24h, by default. I think this issue should be closed, in my opinion.

<!-- gh-comment-id:4086913902 --> @praneetloke commented on GitHub (Mar 18, 2026): It turns out that there is a setting for forcing peer re-authentication: https://docs.netbird.io/manage/settings/enforce-periodic-user-authentication?form=msp. After I updated this setting, I no longer need to re-authenticate often, which is 24h, by default. I think this issue should be closed, in my opinion.
Sign in to join this conversation.
No Label triage-needed
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#7594