Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug/9615-BiometricLoginRefreshTokenFix #10040

Open
wants to merge 15 commits into
base: develop
Choose a base branch
from
1 change: 1 addition & 0 deletions VAMobile/src/store/slices/authSlice.sis.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ context('authAction SIS', () => {
accessControl: Keychain.ACCESS_CONTROL.BIOMETRY_ANY,
accessible: Keychain.ACCESSIBLE.WHEN_UNLOCKED,
authenticationType: Keychain.AUTHENTICATION_TYPE.BIOMETRICS,
storage: Keychain.STORAGE_TYPE.AES,
})
expect(Keychain.setInternetCredentials).toHaveBeenCalledWith('vamobile', 'user', nonce, expectedOpts)
})
Expand Down
2 changes: 2 additions & 0 deletions VAMobile/src/store/slices/authSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ const saveRefreshToken = async (refreshToken: string): Promise<void> => {
accessControl: Keychain.ACCESS_CONTROL.BIOMETRY_ANY,
authenticationType: Keychain.AUTHENTICATION_TYPE.BIOMETRICS,
securityLevel: Keychain.SECURITY_LEVEL.SECURE_SOFTWARE,
storage: Keychain.STORAGE_TYPE.AES,
}
console.debug('saveRefreshToken:', options)
console.debug('saveRefreshToken: saving refresh token to keychain')
Expand All @@ -289,6 +290,7 @@ const saveRefreshToken = async (refreshToken: string): Promise<void> => {
accessible: Keychain.ACCESSIBLE.WHEN_UNLOCKED,
accessControl: Keychain.ACCESS_CONTROL.DEVICE_PASSCODE,
securityLevel: Keychain.SECURITY_LEVEL.SECURE_SOFTWARE,
storage: Keychain.STORAGE_TYPE.AES,
}
console.debug('saveRefreshToken:', options)
console.debug('saveRefreshToken: saving refresh token to keychain')
Expand Down
Loading