There are two types of "web storage" that you could use for this, localStorage and sessionStorage. The former persists indefinitely, the latter is removed when the tab is closed.
If you wanted user tokens to persist past the current browser session, you'd use localStorage.