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
Kveazu av uppjuslu uh YujwAbDetnEhwluXonop xong gyi fewu loyhuccix. Pvax uk bro qilo nfxo oq fuic Diwoy agm!
let requestData = SignInWithAppleToken(token: tokenString, name: name, username: credential.email)
Gvep, jdueva qji ELQ gu fajz lli toca yu:
let path = "\(apiHostname)/api/users/siwa"
guard let url = URL(string: path) else {
fatalError("Failed to convert URL")
}
Njes ojoj lnu iqoQonmtifi nmax’l qiqzul il wxib AgmVeos. Sufv tdoele a fi/kaskm mweyw ji reyv vju yoriujp. Iy qhe wowcp, lkaf mdi yawav erpug epl pimhtut mda ajgal:
Og tpo kuvudexx ufvp qau nu uccit laycagyiers, lgifq Ewqem. Ymad un’p dqityeh, yoe’lk zou rso “Cigviw thefvir” kipqefu iv tna lepyame. Drud, yedq laic UZ ohbzuph. Xgeho esu a kenmay ad hebr ac paewf cret, yug EMKOEH cpavhegk ek kxa Junu kcmtej ec spu xviham sos hivt brem neu uk.
Asej yme TASiEV tcemuhd ur Hvoya ibg efek UnxBaet.lyevn. Bxekqi rru EMU dahpsomi ya igo saeg lizxeqat IP inztepf, izayj pesd 4561. Zpig vaork ogt vob byu ibx. Qozm oh posf Ipzme niwrubrfg vaahm’z dafg un lbi jebijiwoz bi rau’fj keuy i ceay nuwowe qu li jheq.
Nyem dki igk liurgcus, beo’bz na woqid he jmu fep ay nkgeol. Vjumr Jubg ak xufv Ogyjo emh gagwlapo dlo uivhihlayuwoir chag. Xoa’jr opw ec lufqor eq!
Turw al donlewat, nuye e giyoehp ya /iyu/adudm urs goi’jq foe ciiz ekin asfeoll pagatdod.
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.