Authentication in SwiftUI App Using JSON Web Token (JWT)
HTML-код
- Опубликовано: 16 апр 2021
- In this video, Mohammad Azam will demonstrate how to use JSON Web Token authentication in a SwiftUI application. Azam will demonstrate how to implement a NodeJS (ExpressJS) server on Glitch, which can generate a token and send to the client. The client can later send that token to verify authenticity.
GitHub: github.com/azamsharp/SwiftUIA...
Server: glitch.com/edit/#!/strong-spa...
Book: Surviving the Coding Bootcamp - From no coding experience to earning a six-figure salary
www.amazon.com/dp/B09YXDQFP2
Check out my courses:
www.udemy.com/user/mohammad-a...
Get courses from Big Mountain Studio:
1. Combine Mastery in SwiftUI
www.bigmountainstudio.com/com...
2. SwiftUI Animations
www.bigmountainstudio.com/ani...
3. SwiftUI Views Mastery
www.bigmountainstudio.com/vie...
4. Visual Swift Memory Mastery
www.bigmountainstudio.com/swi...
5. Working with Data in SwiftUI
www.bigmountainstudio.com/dat...
6. SwiftUI in UIKit Weekened Kickstarter
www.bigmountainstudio.com/kic... Check out my courses at
azamsharp.school/
As a backend dev who is interested in ios, I found it really useful!
Thank you for super clear explanation! Finally figured out how an authentication works and what is token and why we need it :D
Thank you so much for sharing! I'm making an app for a site and api I created 2 years ago, and could not figure out how to authenticate using a jwt until seeing your video.
Really well explained. Thank you man :) def checking your courses after I finish one I already started
Outstanding crystal clear explaination . Thank you so much for the video.
Loved it! Simple and effective!
OMG , I was waiting for this video ❤️🎊 ,
Thank you! Great video! Everything is laid out on the shelves! 👍
one of the best video that i have seen in my life
you explaining like a boss.
Very useful, perfect explanation, thank you!
This is really well done and presented so simply. Great job!
A very useful and great video, thank you so much!
Excellent!!!💯
Very useful! Thanks!
great tutorial !!
Hello, can you show the way how to sign in e.g. with google or apple(using JWT and oauth2)?
I have a server responding with token and a refresh token as well. How to avoid logging out the user after main token expiries? I know I have to send refresh token when getting 401.
Very helpful, How do we handle refresh tokens?
How to add basic auth in your program,
and im getting no response in debug log
what framework are you using?
Very great tutorial, but it is secure to store data like passwords, jwt tokens in the app storage (userDefaults) ?
No. You should not store passwords in UserDefaults. Also, when you create a token make sure to not store sensitive data in the token.
Did you ever figure out why when sending the incorrect token you do not get the required response?
Hi. Can you tell me what tool you use to highlight the area on the screenrecording?
Demo pro
@@azamsharp thank you! Love this tutorial btw!
Hi. Could you please say may this tutorial be relatable for any backend? I have to implement registration, login for iOS app.
If I have the login with Apple, how I can do the same
For Apple Login you will need to read docs for Apple Auth framework.
Great video!
Try putting the jwt.verify() into a try-catch block.
From the documentation:
try {
var decoded = jwt.verify(token, 'SECRET');
} catch(err) {
// Handle err
}