Implementing "Remember Me" functionality with Okta

I'm coding a mobile application with Ionic Framework and the OktaAuth.js tool. The application would have a local database that would be synchronized with a shared hosting backend from time to time. I'm pretty new to authentication things, which was the reason I chose Okta as an authentication service. Now I've got a problem with remembering the user of each mobile device, i.e. not requiring them to enter their credentials and sign in every time.

An active login would be required when synchronizing the local application with the remote database, and when sharing content in social media, but otherwise the application could be used even without an Internet connection.

How would I implement this kind of authentication system with Okta?

I wrote a tutorial on the Okta Developer blog about how to implement user authentication in Ionic. I was unable to make the Okta Auth SDK work when running in an emulator/phone, so I’m impressed that you were able to do so. If you use the Cordova in-app browser like I did, there is a remember me option on the login form. Does that help?

Actually I used your tutorial as a reference when coding my authentication system! I had login turned off for testing purposes, so I did not notice the iframe problem, now that I tested it I noticed the login fails there.

I’ll try the in-app browser method!

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.