Installing Reflio affiliate manager

I am trying to install Reflio to handle my affiliate deals. In their walkthrough, in step 6 they ask to install the following JS when a user signs up:
<script type="text/javascript">
await Reflio.signup('yourcustomer@email.com')
</script>
<script type="text/javascript">
await Reflio.signup('yourcustomer@email.com')
</script>
I am a bit lost in where to place this, since the sign up is a bit abstracted with the Google OAuth.
24 Replies
kapa.ai
kapa.aiβ€’4mo ago
Hi @Ricardo Batista. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- I'm sorry, but as an AI assistant for Wasp, a Rails-like framework for React, Node.js, and Prisma, I can only provide information related to Wasp. I don't have the necessary information to guide you on installing Reflio affiliate manager. I recommend reaching out to Reflio's support or checking their documentation for more detailed instructions. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @Ricardo Batista, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
miho
mihoβ€’4mo ago
Auth hooks are still in progress (which will enabled executing backend code before/after the signup). One thing I could suggest here is going with a client based solution. For example, on the Homepage or on the page where the user is redirected to after the login - do the following: - make sure you have some sort of a field on the user didSignUpForReflio - check if it's true or false by using a query that checks for the current user in the DB - if it's false, call the code to signup await Reflio.signup('yourcustomer@email.com') - use an action to set the value of didSignUpForReflio to true
martinsos
martinsosβ€’4mo ago
Hooks are coming in a couple of weeks probably though, and they will make this much easier!
Ricardo Batista
Ricardo Batistaβ€’4mo ago
Ok, will wait for the hooks! What is the best way to stay updated?
miho
mihoβ€’4mo ago
Just hang around here πŸ™‚ we publish updates in #πŸ’¬general
martinsos
martinsosβ€’4mo ago
@Ricardo Batista what you could try to do to stay updated is also watching for new releases at https://github.com/wasp-lang/wasp/releases . Github says here https://github.blog/changelog/2018-11-27-watch-releases/ you can subscribe to get notifications from the repo exclusively for new releases. I haven't set that up myself, but that is probably the most efficient way. We usually produce a new release for Wasp every couple of months, so that is probably a perfect amount of "noise" to stay updated with new versions of Wasp.
GitHub
Releases Β· wasp-lang/wasp
The fastest way to develop full-stack web apps with React & Node.js. - wasp-lang/wasp
admin
The GitHub Blog
Watch releases
You can now limit repository notifications exclusively to releases. Receive notifications when new releases are published in a repository without receiving notifications about other updates and conversations. Learn more about release notifications
Ricardo Batista
Ricardo Batistaβ€’4mo ago
Thanks!
MEE6
MEE6β€’4mo ago
Wohooo @Ricardo Batista, you just became a Waspeteer level 5!
Ricardo Batista
Ricardo Batistaβ€’3mo ago
@miho any news on this one?
martinsos
martinsosβ€’3mo ago
@Ricardo Batista is that regarding the hooks? So they are super close to being merged, you can see the PR here: https://github.com/wasp-lang/wasp/pull/1993 . But, then we also need to cut the release: we added quite some stuff to Wasp so we will have to do some thorough QA + we want to make sure some bigger featuers also make the cut. So realistically, the new release, 0.14, with hooks included, will be out most likely in 4 weeks.
Ricardo Batista
Ricardo Batistaβ€’3mo ago
Gotcha, thanks for the update! @kapa.ai do I also need the upcoming PR to send a welcome email on signup?
kapa.ai
kapa.aiβ€’3mo ago
Let me check the knowledge base for you. One moment! :books: ---------------------- Based on the information provided in the knowledge sources, it seems that the Wasp framework does not currently have built-in support for sending welcome emails upon user signup. However, there is a discussion about adding email functionality in the future (source (https://github.com/wasp-lang/wasp/issues/691)). In the meantime, you can create a custom sign-up action to send a welcome email. This would involve using an external service to send the email. You can find an example of how to create a custom sign-up action in the Wasp documentation (https://wasp-lang.dev/docs/auth/email#creating-a-custom-sign-up-action). Please note that this information is based on the current state of Wasp and may change in the future. Always refer to the latest Wasp documentation for the most accurate information. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @Ricardo Batista, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
miho
mihoβ€’3mo ago
Auth hooks have been merged, but hey are going to be released next month πŸ™‚ we are doing some other stuff as well that we want to include in the release
Ricardo Batista
Ricardo Batistaβ€’3mo ago
@miho on a separate note, but in the same topic: I need to implement a Google refresh token taking advantage of this auth flow. This will only be possible when the Auth hooks are released, correct? Right now I can't seem to access the return of the OAuth process 😦
miho
mihoβ€’3mo ago
Yep, you'll be able to get the access token that we received on signup, but we'll upgrade it in 0.14.1 to include the access and refresh tokens on login as well πŸ˜„
Want results from more Discord servers?
Add your server