We have a file sharing service, http://ge.tt, and a few extensions for Chrome. One of them which adds extra capabilities to Gmail.
In this extension we ask users to login to Ge.tt before they are able to use the extension. Since they are already logged in on Ge.tt it would be great that they didn’t have to log in again, and it causes some users to misunderstand how it works.
What would be a good way to go around and tackle this problem? Does others have the same issue?
You can simply make an HTTP request from the extension to the user-only page to see if they are logged in. Something like
ge.tt/my-profile-pingwhich returns1if user is logged in,0otherwise.Extensions share the same cookies the browser does, so you just need to test if they are logged in and continue displaying logged-in-only data in your extension.
Also, don’t forget to enable requests in your extension manifest for domain ge.tt, and http://www.ge.tt, and probably the https version also (if you haven’t already)
Something like this in your
manifest.json: