fix: ensures the SessionService is created whenever ANY authentication method is enabled.

This commit is contained in:
Benjamin
2025-12-18 11:44:10 +01:00
parent 600d709834
commit cd0b751966
+1 -1
View File
@@ -61,7 +61,7 @@ func main() {
// Create OAuth service (internal infrastructure)
var oauthService *auth.OauthService
if cfg.Auth.OAuthEnabled {
if cfg.Auth.OAuthEnabled || cfg.Auth.MagicLinkEnabled {
oauthService = auth.NewOAuthService(auth.Config{
BaseURL: cfg.App.BaseURL,
ClientID: cfg.OAuth.ClientID,