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.

This course was originally built with Nuxt 3, but it's no longer being maintained. You can still follow the lessons, but make sure to use the exact dependency versions listed in the course repository to avoid breaking changes.

If you’re looking for the most up-to-date and fully supported version, we recommend Mastering Nuxt: Full Stack Unleashed , which uses Nuxt 4 and actively being maintained.