How do I migrate if it's a google extension?

Clear. I already got the question that the only way I can connect that way is with this chrome.identity - Chrome Developers Because if I do it full javasript I never get the token. Do you know another way keeping the implicit authentication