What does history.pushState() do?

Hey yall, I am currently working on the Jammming project for react and had a question about step 80. The hint contains this code block in order to clear the access token and expiration parameters from the URL:

window.history.pushState('Access Token', null, '/');

I’m not really sure how this code works. The walkthrough video doesn’t really explain what is happening in this line of code or how it clears the URL. I’m having trouble figuring out what the arguments to pushState do or how it clears the URL search parameters. Can anyone explain this to me?

https://www.codecademy.com/paths/full-stack-engineer-career-path/tracks/fscp-react-part-ii/modules/fecp-challenge-project-jammming/projects/jammming-prj