I'm creating a Chrome extension popup and need login. For now, I will make my own authentication with a username and password, but what are best practices within an extension?
Here are my thoughts:
- I will make the login against a remote server using a post.
- Get a token back which I will keep in local storage for an amount of time.
- The popup should also have a register inside it
Is it good to keep it all inside the extension? This is where I want my users to be, and not in some website to register and so on.
The change from login to "home page" or the registration page, should this be done with messaging?