Join our community

Get access to the complete guide to developing and deploying fast, production-ready Nuxt apps.

7-14 Link Purchase with Github

In this lesson, we link the CoursePurchase object with the user’s Github account.

To do this, we redirect the user to the login page after a successful purchase. Once they log in, they’re redirected back to a linkWithGithub page.

This page hits an endpoint that grabs their email and updates the CoursePurchase object so we know to allow this Github user to access the course.

We define an empty render function since we don’t need to render anything on this page.