FormidableLabs / FormidableLabs/react-native-app-auth
iOS: Enable/Allow faceId touchid or any biometric action before redirect or close the modal/webview
- Dominant language
- Java
- Stars
- 2.3k
- Forks
- 473
- PR merge metrics
- No merged PRs in 30d
Description
## Issue
Hi everyone.
I was wondering if it would be possible, after entering valid credentials and getting the token, to give the user some time in iOS to be able to save the credentials before closing the webview/modal.
If not, could someone point me in the right direction to try to do it myself in any of the library files?
I was trying to do it with the following files, but I couldn't find the right spot to, for instance add some kind of timeout so the user is able to tap in "save credentials" after the credentials are validated and before the modal is closed.
node_modules/react-native-app-auth/ios/RNAppAuth.m
ios/Pods/AppAuth/Sources/AppAuthCore/OIDAuthorizationService.m
ios/Pods/AppAuth/Sources/AppAuthCore/OIDAuthState.m
ios/Pods/AppAuth/Sources/AppAuthCore/OIDAuthorizationRequest.m
Thanks in advance!
---
## Environment
Azure
iOS
`react-native` Version**: `0.73.6`
`react-native-app-auth` Version: `^7.1.0`
* **Are you using Expo?** NO
Contributor guide
Research direction
Start by tracing the iOS authentication and dismissal flow in RNAppAuth.m, then inspect OIDAuthorizationService.m, OIDAuthState.m, and OIDAuthorizationRequest.m. Determine where the token is received and the modal or webview is closed. Done means the iOS flow permits the requested biometric or credential-saving action before redirect or dismissal.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, react-native
- Domain
- authentication, mobile
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100