Signed-off-by: Anirudh Oppiliappan anirudh@tangled.sh
+8
-4
appview/oauth/handler/handler.go
+8
-4
appview/oauth/handler/handler.go
························
+28
-35
appview/oauth/oauth.go
+28
-35
appview/oauth/oauth.go
···-func (o *OAuth) SaveSession(w http.ResponseWriter, r *http.Request, oreq db.OAuthRequest, oresp *oauth.TokenResponse) error {+func (o *OAuth) SaveSession(w http.ResponseWriter, r *http.Request, oreq sessioncache.OAuthRequest, oresp *oauth.TokenResponse) error {··················newExpiry := time.Now().Add(time.Duration(resp.ExpiresIn) * time.Second).Format(time.RFC3339)············
+1
-1
appview/state/router.go
+1
-1
appview/state/router.go
···-oauth := oauthhandler.New(s.config, s.pages, s.idResolver, s.db, store, s.oauth, s.enforcer, s.posthog)+oauth := oauthhandler.New(s.config, s.pages, s.idResolver, s.db, s.sess, store, s.oauth, s.enforcer, s.posthog)
+9
-2
appview/state/state.go
+9
-2
appview/state/state.go
·········posthog, err := posthog.NewWithConfig(config.Posthog.ApiKey, posthog.Config{Endpoint: config.Posthog.Endpoint})······