Six years later, Carol returned to Earth and recovered her human memories, and with Nick Fury, Maria Rambeau, Talos and Goose, she traveled to Mar-Vell’s base hidden in Earth’s orbit.
Carol was bathed in the Tesseract energy released in the explosion, resulting in her gaining her trademark energy powers.
There they found the Tesseract, and Goose, actually a flerken as opposed to a cat, swallowed the cube so that the Kree couldn’t take it.
After Mar-Vell’s ship was shot down by Starforce and she was killed by Yon-Rogg, Carol Danvers, who had been working with Dr. Wendy Lawson, followed her mentor’s last instructions and destroyed the light speed engine.