You can also deserialize to System.Text.Json.Nodes.JsonObject which supports indexers, allowing you to access any property:
var json = """{ "token": "ab123" }""";
var jsonObj = JsonSerializer.Deserialize<JsonObject>(json);
var token = y?["token"]?.GetValue<string>();