testing | dont be recursive for external domains | finalize oauth #5

Merged
simponic merged 24 commits from dont-be-authoritative into main 2024-04-06 15:43:19 -04:00
2 changed files with 1 additions and 2 deletions
Showing only changes of commit cad8e2c4ed - Show all commits

View File

@ -144,7 +144,7 @@ func VerifySessionContinuation(context *types.RequestContext, req *http.Request,
http.SetCookie(resp, &http.Cookie{
Name: "session",
Value: "",
MaxAge: 0, // reset session cookie in case
MaxAge: 0,
})
context.User = nil

View File

@ -276,7 +276,6 @@ func TestRefreshUpdatesExpiration(t *testing.T) {
updatedSession, _ := database.GetSession(db, cookies["session"].Value)
// if session expiration is greater than or equal to updated session expiration
if session.ExpireAt.After(updatedSession.ExpireAt) || session.ExpireAt.Equal(updatedSession.ExpireAt) {
t.Errorf("expected session expiration to be updated, got %s and %s", session.ExpireAt, updatedSession.ExpireAt)
}