diff --git a/appview/oauth/oauth.go b/appview/oauth/oauth.go index 78ee421f..f81500bc 100644 --- a/appview/oauth/oauth.go +++ b/appview/oauth/oauth.go @@ -58,8 +58,11 @@ func New(config *config.Config, ph posthog.Client, db *db.DB, enforcer *rbac.Enf sessStore := sessions.NewCookieStore([]byte(config.Core.CookieSecret)) + clientApp := oauth.NewClientApp(&oauthConfig, authStore) + clientApp.Dir = res.Directory() + return &OAuth{ - ClientApp: oauth.NewClientApp(&oauthConfig, authStore), + ClientApp: clientApp, Config: config, SessStore: sessStore, JwksUri: jwksUri,