I'm relatively a newbie to extension development for chrome, i find that there is a lot of source material out there which mention the use of OAuth over localStorage. I need to verify credentials for an API that doesn't offer OAuth. I don't want to do it through localStorage either due to the obvious security risks. Is there any other best practices that could be followed ?
As of now I am directing the client to the main website through which Basic Auth occurs. If I were to follow this way the client would login through the website everytime and I don't know how to check the ifLoggedIn() status other than through accessing the domain through a dummy request and checking if a 401 is returned. Is there some way out for this as well ?