Sign in with Apple Using Vapor 4

In this Vapor 4 tutorial, you’ll learn how to implement Sign in with Apple with an iOS companion app and a simple website. By Christian Weinberger.

Leave a rating/review
Download materials
Save for later
You are currently viewing page 5 of 5 of this article. Click here to view the first page.

Where to Go From Here?

Download the starter project by clicking the Download Materials button at the top or bottom of the tutorial.

In this article, you learned how to validate an Apple identity token with your Vapor 4 back end. You used this information to authenticate an existing user or create a new account for them. Finally, you used Leaf to create a small front-end website that allows users to sign in with Apple.

If you’re looking for a challenge beyond the scope of this article, here are a few things you can try:

  • Allow signing in using Sign in with Apple with an existing user by matching the email address.
  • Allow the user to sign up and sign in using a username and password.
  • Add a profile page to your front end that’s protected by your access token.

If you want to learn more, you’ll find the Vapor 4 Authentication: Getting Started and Sign in with Apple using SwiftUI tutorials helpful. Additionally, Apple’s Sign in with Apple and Communicating Using the Private Email Relay Service documentation has useful information.

We hope you enjoyed this tutorial. If you have any questions or comments, please join the forum discussion below!