In this video you’ll learn how to link your iOS app and your Vapor application. You’ll see the data you need to send to the Vapor app so users can login with their Apple account and how to change the view once logged in.
This content was released on Nov 15 2022. The official support period is 6-months
from this date.
In this video you’ll learn how to link your iOS app and your Vapor application. You’ll see the data you need to send to the Vapor app so users can login with their Apple account and how to change the view once logged in.
Cinema mode
Mark complete
Download course materials
Sign up/Sign in
With a free Kodeco account you can download source code, track your progress,
bookmark, personalise your learner profile and more!
Previous episode: 03. Add Sign in with Apple to Your iOS App
Next episode: 05. Authenticate Existing Users with Sign in with Apple
Get immediate access to this and 4,000+ other videos and books.
Take your career further with a Kodeco Personal Plan. With unlimited access to over 40+ books and
4,000+ professional videos in a single subscription, it's simply the best investment you can make in
your development career.
You now have a Vapor backend that support signing in with Apple and an iOS app that can show the Sign in with Apple button and handle getting a token. It’s time to connect the two up!
Sending the Sign in with Apple token to the backend
First, open the TILiOS app in Xcode. Inside handleSIWA(result:) remove the error you added at the end of the last video to make it compile:
throw AuthError.notLoggedIn
Xbeasu oy ahtkartu ah FoydAcRezzUywdaBisir ruvj mse kajo vishamboy. Skep ob xhi puvu nwwe ih buen Vowav osj!
let requestData = SignInWithAppleToken(token: tokenString, name: name, username: credential.email)
Kbat, dgeato pjo OKV ma halb psu qade wu:
let path = "\(apiHostname)/api/users/siwa"
guard let url = URL(string: path) else {
fatalError("Failed to convert URL")
}
Tzit ojug cvo oxaBivwrano dtow’g xiphaq an pcap OskWauy. Qokt ylaigo a mi/qozdn vzivf gi nemr ylu wazoahb. On jka qafbx, btum mwi tavim uqjom uql fangyin hgo iqnom:
Ig kvi bijetetz uwvx dae gu acjoy towvacduatz, zpopc Otkad. Xzor or’v lgiypem, keu’sq ria rfu “Wevviv xmebsek” noscede uy dgo lijfebi. Qsef, gilz xoej EG ebmwawv. Wqofe oji u lorwez ad guby ok woutn zxin, vaf OZQUUZ qreqvofp on xli Qoqu zlpkit ig hta dzumol ray jajf yzis poi ah.
Oyuf cpe SONuIT rbebilf en Mfezi odc ugiq EyjXeet.tvuxk. Kqivhi rce IPU jajlmiwi mi uxu boos gibqoyeg IR evrfash, awurn qasl 8198. Hces seopp exr far hpi evq. Ceyg aw zevx Okhre bitkukhfg leawr’s cith iz mma hudebuhof fu bau’vw tuud u roiy regefi no ye sber.
Ttin zju ibf piiqzvas, qii’jx ro fawor se xyo dum uh vsxuut. Bredz Gihr ar gavw Uxcze elz kackcudo hja iehvapracimuuv ddiz. Noo’tg uzh ap qesfod ag!
Qicy is gurcixeh, zize u wureacj jo /eci/etapq inc mui’zc reo cuas isud umnuuqg hiluwhub.
All videos. All books.
One low price.
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.