From 2ecec2c0912462cf2ddc9525495ad63d426ad23a Mon Sep 17 00:00:00 2001 From: Dylan Nienberg Date: Wed, 4 Dec 2024 11:08:15 -0600 Subject: [PATCH] updated --- VAMobile/src/utils/auth.ts | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/VAMobile/src/utils/auth.ts b/VAMobile/src/utils/auth.ts index bb620c0541..feb1a61687 100644 --- a/VAMobile/src/utils/auth.ts +++ b/VAMobile/src/utils/auth.ts @@ -341,44 +341,19 @@ export const initializeAuth = async ( refreshAccessToken: () => void, showActionSheetWithOptions: (options: ActionSheetOptions, callback: (i?: number) => void | Promise) => void, ) => { - const options = ['close'] if (store.getState().demo.demoMode) { return } const pType = await getAuthLoginPromptType() if (pType === LOGIN_PROMPT_TYPE.UNLOCK) { - showActionSheetWithOptions( - { - title: 'login unlock hit', - options, - cancelButtonIndex: 0, - }, - () => {}, - ) await finishInitialize(dispatch, false) await startBiometricsLogin(dispatch, refreshAccessToken, showActionSheetWithOptions) return } else { const refreshToken = await retrieveRefreshToken() if (refreshToken) { - showActionSheetWithOptions( - { - title: 'login refreshing access token hit', - options, - cancelButtonIndex: 0, - }, - () => {}, - ) await refreshAccessToken() } else { - showActionSheetWithOptions( - { - title: 'login clear credentials', - options, - cancelButtonIndex: 0, - }, - () => {}, - ) await clearStoredAuthCreds() await finishInitialize(dispatch, false) }