Replies: 4 comments 7 replies
-
I had an idea as follows:
So as long as the user uses the app regularly (let's say once every 24 hours), the user doesn't have to re-enter his credentials. |
Beta Was this translation helpful? Give feedback.
-
I was considering implementing biometric login. My plan was to use a longed-lived refresh token, and when the user enables biometric login in the app, I will store the current user using Do you have any input on this flow, and can you think of a way of making these API's public? |
Beta Was this translation helpful? Give feedback.
-
@ms-emp, thanks for the interest! My reflection on the topic has evolved since I created this discussion, and I don't think adding biometrics to this library brings any additional value, nor that it has anything related to authentication (unless there are opinions to the contrary). From my point of view, using FaceID/TouchID via the phone’s native APIs does not enhance authentication. To me, it’s simply an additional layer of security (like an extra door), and it doesn't fundamentally change the authentication already in place through the library. Currently, tokens are already stored in a secure space on the phone, and the library already automatically renews these tokens before they expire. The maximum connection time for a user before they need to reconnect therefore depends on the combination of token lifetimes and the session duration itself. And it doesn't matter if the app is closed or reopened, user can still remain connected as long as a the session or token are active. FaceID/TouchID only act as an additional security barrier and/or a facilitator to help the user reconnect (e.g., by storing the username/password and automatically re-injecting them in case of success). Adding these features to the library, knowing that they wouldn’t be tied to any authentication flow, would merely expose the APIs of the associated plugins and would offer nothing more than if the developer directly imported those plugins themselves. What do you think? |
Beta Was this translation helpful? Give feedback.
-
Would you consider accepting this PR? It does not change any logic, it simply makes some APIs public, allowing me to successfully implement biometric login. |
Beta Was this translation helpful? Give feedback.
-
Investigate if TouchID, FaceID, WebAuthn, etc. could add any value and how they could be implemented.
Beta Was this translation helpful? Give feedback.
All reactions