Over the past 6-7 months, I've been working on a chrome extension called OneLine that combats dyslexia online. I am trying to add a pro version to the extension, but I'm not sure where to start. I've read some articles and I've surfed around the Chrome API docs, but I haven't found anything very promising.
I would like to know:
Any help would be appreciated!
This way works for me, 2 saas extensions.
The OAuth login - does that just create a user with user credentials and an OAuth key? I assume the users are stored in a DB? I'm also a little confused about the last step, what is the extension checking, the OAuth keys?
From user perspective it's just "Login with Google" flow.
chrome.identity APIs - help you authorize user and get his verified email address.
Then you call your licence server APIs and check if the subscription is active/due dates/etc
I personally don't use DB at all. My licence server syncs with payment provider APIs and stores cache in RAM.
(PS if you want to port your extension to Edge or Firefox; oauth doesn't work there)
Which license server API service did you use?
I implemented it. It's a simple REST service that returns subscription status by email - active or non-active
Thank you for the info! Very helpful :)
Its relatively straight forward. You would need to build a site where you direct your users to do the actual purchase tho that could be offloaded to gumroad, paypal, or whatever you want to use to handle ecommerce.
This should then generate a purchase and let your site know it has occurred. At this point you would generate some kind of license key -- anything as simple as uuid, to whatever scheme you would like.
In your extension you would then have an area that allows user to enter the key. Once entered, it would verify this via XHR to your site. I generally add protection besides the key -- for instance, in one of my extensions I have user enter something that came from ecommerce transaction, in my case, I have them enter email.
There are caveats to think about such as what if the key is used multiple times, or if the user installs the extension on new PC, but those are up to you as to how restrictive you'd like to be.
Happy to help further if needed via email.
Thank you! This seems pretty simple!
Hi Graham,
the only paying chrome extension I use is cssscan. It’s great. You can find the creator here in indiehackers. Is @gvrizzo .
You can find the link to the extension here https://chrome.google.com/webstore/detail/css-scan/gieabiemggnpnminflinemaickipbebg?hl=es
I don’t know exactly how he handles the licenses but i guess he will have a license server or a table with valid licences and when you type your license, he will verify is valid and is not been used more than 2 times. If this is correct, you will unlock all the premium features.
Hope this helps.
Regards.
Thanks Ricardo!