Skip to content

Commit

Permalink
fixed linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Sparowhawk committed Nov 1, 2024
1 parent f0fd9ef commit ddc8e27
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions VAMobile/src/api/auth/handleTokenCallbackUrl.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useMutation } from '@tanstack/react-query'

import { UserAuthSettings, handleTokenCallbackParms } from 'api/types'
import { handleTokenCallbackParms } from 'api/types'
import { Events } from 'constants/analytics'
import { logAnalyticsEvent, logNonFatalErrorToFirebase } from 'utils/analytics'
import { getCodeVerifier, loginFinish, loginStart, parseCallbackUrlParams, processAuthResponse } from 'utils/auth'
Expand All @@ -9,7 +9,6 @@ import getEnv from 'utils/env'
import { clearCookies } from 'utils/rnAuthSesson'

import { usePostLoggedIn } from './postLoggedIn'
import { authKeys } from './queryKeys'

const { AUTH_SIS_TOKEN_EXCHANGE_URL } = getEnv()

Expand Down
2 changes: 0 additions & 2 deletions VAMobile/src/utils/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,6 @@ export const clearStoredAuthCreds = async (): Promise<void> => {
/**
* Generates code verifier and challenge, and stores the code verifier in AsyncStorage.
* The codeChallenge is returned and can be used to start the authorization flow.
* @returns {string} codeChallenge
*/
export const generateCodeVerifierAndChallenge = async (): Promise<string> => {
const { codeVerifier, codeChallenge } = await pkceAuthorizeParams()
Expand All @@ -207,7 +206,6 @@ export const generateCodeVerifierAndChallenge = async (): Promise<string> => {
/**
* Retrieves the codeVerifier from AsyncStorage.
* The codeVerifier is generated using the pkceAuthorizeParams helper, and is used to verify the authorization flow.
* @returns {Promise<string | null>} The codeVerifier stored in AsyncStorage, or null if it does not exist.
*/
export const getCodeVerifier = async (): Promise<string | null> => {
const codeVerifier = await AsyncStorage.getItem(CODE_VERIFIER)
Expand Down

0 comments on commit ddc8e27

Please sign in to comment.