Need Help for mobile auth with lucia #1794
-
|
Hi. I am very clear of lucia auth flow and how the website authentication works. But I am new to mobile and I found that the most recommended way to be authenticated in mobile app is through JWT (at least the most popular way). Should I keep using session to handle the authentication? If yes, how to store cookies in mobile? i.e. Flutter SecureStorage? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
There should be nothing preventing you from using session based auth with a mobile app, just do what it mentions in the Client-Side Storage section of the Basic session implementation guide:
I can't make any recommendations for Flutter because I don't use it, but flutter_secure_storage seems to be popular based on a quick search, though you should perform your own due diligence and look into its pros/cons and see if there are any alternatives that might better suit your needs. Or try to get specific advice from Flutter developers by asking around in any of the Flutter specific communities that exist. |
Beta Was this translation helpful? Give feedback.
There should be nothing preventing you from using session based auth with a mobile app, just do what it mentions in the Client-Side Storage section of the Basic session implementation guide:
I can't make any recommendations for Flutter because I don't use it, but flutter_secure_storage seems to be popular based on a quick search, though you should perform your own due diligence and look into its pros/cons and see if there are any alternatives that might better suit your needs. Or try to get specific advice from Flutter developers by asking around in any of the Flutter specific communities that exist.