diff --git a/backend/internal/handler/auth_handler_login_test.go b/backend/internal/handler/auth_handler_login_test.go index 08d06e2b..64833990 100644 --- a/backend/internal/handler/auth_handler_login_test.go +++ b/backend/internal/handler/auth_handler_login_test.go @@ -633,8 +633,11 @@ func TestPasswordLogin_OIDC_Success(t *testing.T) { if got["redirectTo"] != "http://rp/cb" { t.Errorf("expected redirectTo http://rp/cb, got %v", got["redirectTo"]) } - if _, ok := got["sessionJwt"]; ok { - t.Errorf("expected OIDC response to omit sessionJwt, got %v", got["sessionJwt"]) + if got["sessionJwt"] != "valid-jwt" { + t.Errorf("expected sessionJwt to be valid-jwt, got %v", got["sessionJwt"]) + } + if got["token"] != "valid-jwt" { + t.Errorf("expected token to be valid-jwt, got %v", got["token"]) } }