N
N
nohoney-nomoney2021-11-15 17:41:16
Mobile development
nohoney-nomoney, 2021-11-15 17:41:16

How to implement login and password saving in mobile applications?

In any application, when you enter your login and password, the phone saves it and in the future you can log in using face id or touch id .
What needs to be done to make this functionality work in the application?
I have a vue quasar app.
I am using cordova to build the app.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergio, 2021-11-15
@sergiodev

On iOS, you can save the login and password (or token) in a keychain (keychain), as an option. This is something like an encrypted storage of all sorts of keys and passwords. There is a plugin for Cordova - https://www.npmjs.com/package/cordova-plugin-ios-k...
Something similar should also be on Android.

V
vipruk, 2022-04-11
@vipruk

Use localStorage to store authorization data (it's better to store the authorization token).
When opening the application, check the data in localStorage, if there is data and it is valid, then run the Touch Id check, if not, redirect to the authorization page.
Touch Id Plugin
https://github.com/EddyVerbruggen/cordova-plugin-t...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question