mirror of
https://github.com/netbirdio/netbird.git
synced 2026-07-17 03:59:56 +00:00
Refactor UI --------- Co-authored-by: Eduard Gert <kontakt@eduardgert.de> Co-authored-by: braginini <bangvalo@gmail.com> Co-authored-by: Pascal Fischer <32096965+pascal-fischer@users.noreply.github.com> Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: riccardom <riccardomanfrin@gmail.com>
17 lines
528 B
Go
17 lines
528 B
Go
//go:build !js
|
|
|
|
package internal
|
|
|
|
import (
|
|
"github.com/netbirdio/netbird/client/internal/auth/sessionwatch"
|
|
"github.com/netbirdio/netbird/client/internal/peer"
|
|
)
|
|
|
|
// newSessionWatcher returns the real SSO session expiry watcher for every
|
|
// non-wasm build. The js/wasm build gets a no-op stub from
|
|
// engine_sessionwatch_js.go so the sessionwatch package (and its timer
|
|
// machinery) never links into the wasm binary.
|
|
func newSessionWatcher(recorder *peer.Status) sessionDeadlineWatcher {
|
|
return sessionwatch.New(recorder)
|
|
}
|