How do I stay logged in with KeychainAccess when using JWT in SwiftUI?
I have an application where I set up a login system using JWT. My application currently cannot stay in the application for a long time after the user logs in successfully, it redirects to LoginView every time. I want the user to stay in the application after logging in until he/she presses Logout from the application. I wanted to use KeychainAccess because it is more secure but when I update my LoginViewModel in this way and click on login button, I cannot even log in to the application. How do I do this?