How can I make changes deeper than the chrome ext? #210
JordanTreDaniel
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Maybe we need a way to programmatically do a lot of things by passing in email?
There are few things I'd like to do without a window:
I think we should have a way to programmatically sign users in and out, or start trials for them. The standard api of interacting with openThisPage or openThatPage can be a little inconvenient, and for me, I already manage sign-ins and accounts, so I don't like asking my users to sign in twice. (Once for my api/ext, and once for extpay)
It would be nice to:
Get/sign in the user from extPay as getUser(email: string = null) (get user should take an email, since I already have one for the user)
1a. This would eliminate the need to open the login page, as we would be logging them in with their email. (security could be issue, but we could auto-generate a password for them and store it in our own db, passing it in with the email)
If user doesn't have a trial, we could potentially start one for them by calling a method with their email (and jwt from step one or password if needed)
openPaymentPage would stay as the way to manage subs and what not, as it does make sense. If we didn't like opening the tabs, maybe a way to programmatically do read status and change it would be nice.
I haven't submitted a PR bc I believe the stuff is obscured behind the api at https://extensionpay.com/api please correct me if I'm wrong, but the real sign in logic, as well as trial starting logic is prob inside of the api right?
Beta Was this translation helpful? Give feedback.
All reactions