During CLI authentication browser says successful but the CLI says no user was logged in in termina

New to Shopify and trying to get my environment setup at work

I downloaded shopify cli tool with brew following the quickstart guide.

After downloading

shopify login

opens a browser and asks me to choose my account. Then gives me a success message.

Authenticated successfully. You may now close this page.

but my terminal just gives the message

It doesn’t appear that you’re logged in. You must log into a partner organization or a store staff account.> > If trying to log into a store staff account, please use shopify login --store=STORE to log in.

then typing shopify whoami gives the same response.

I have been trying this for hours and cleared my cache and cookies and uninstalled an re-installed the CLI tool many times.