diff --git a/appview/oauth/accounts.go b/appview/oauth/accounts.go index 5197715e..7d8b8be3 100644 --- a/appview/oauth/accounts.go +++ b/appview/oauth/accounts.go @@ -63,7 +63,7 @@ func (o *OAuth) GetAccounts(r *http.Request) *AccountRegistry { func (o *OAuth) SaveAccounts(w http.ResponseWriter, r *http.Request, registry *AccountRegistry) error { session, err := o.SessStore.Get(r, AccountsName) if err != nil { - return err + o.Logger.Warn("failed to decode existing accounts cookie, will create new", "err", err) } data, err := json.Marshal(registry) diff --git a/appview/oauth/oauth.go b/appview/oauth/oauth.go index e56afc53..3e76fcfc 100644 --- a/appview/oauth/oauth.go +++ b/appview/oauth/oauth.go @@ -104,7 +104,7 @@ func New(config *config.Config, ph posthog.Client, db *db.DB, enforcer *rbac.Enf func (o *OAuth) SaveSession(w http.ResponseWriter, r *http.Request, sessData *oauth.ClientSessionData) error { userSession, err := o.SessStore.Get(r, SessionName) if err != nil { - return err + o.Logger.Warn("failed to decode existing session cookie, will create new", "err", err) } userSession.Values[SessionDid] = sessData.AccountDID.String()