I want a user to login to my Chrome Extension via my normal website's login portal. Specifically, I want to mimic the Grammarly authenticaion flow where a user clicks signin on the Chrome Extension, gets redirected to Grammarly's website, sign ins, then the Chrome extension automatically knows about the user account.
Grammarly probably stores a Cookie when the user logs on the browser that their extension then checks for. Is there a working example of this or guidance on how to set the cookie and then read it from the Chome Extension.
Declare a host permission for your web site in your extension manifest.
Let the user log in on the web site, and then use the chrome.cookies API to read the cookie.
Now, you can make authenticated requests to your web site, using that cookie.