getAccessTokenWithPopup display options

Hi,
In my Angular spa I have implemented getting the access token with a popup. However, I need this to be displayed in a page instead of a popup.

I have checked Get token without popup. Tried to use options = { display: ‘page’ } but still getting a popup.

Anyone knows???