You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Chromium Extensions
Hello I am currently developing an extension with user authentication provided by supabase. I would like to persist the user's login whenever the user authenticates themself, however, once they log in and click out of the extension, it automatically brings the user to the initial popup. I tried using the chrome storage API to store the user's session however it still brings the user back to the initial page when clicking out of the extension. Any advice would be greatly appreciated!
wOxxOm
unread,
Apr 19, 2024, 9:57:50 PM4/19/24
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Chromium Extensions, Ivan Chen
Sounds like you use an action popup and it closes after using the sign-in UI. It means the page is completely destroyed just like it does when closing a tab. Next time you open the popup it runs again from the beginning using the same html page that you previously configured in manifest.json or via chrome.action API. Use chrome.action.setPopup to change the page displayed when the popup is opened next time. To change the currently displayed page in a visible popup additionally use location.replace() inside the popup.