Skip to content

Commit

Permalink
remove dev code
Browse files Browse the repository at this point in the history
  • Loading branch information
cameron-eyds committed Dec 4, 2023
1 parent f979622 commit c1c8315
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 27 deletions.
26 changes: 0 additions & 26 deletions ppr-ui/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ import { computed, defineComponent, onBeforeMount, toRefs, reactive, watch } fro
import { useStore } from '@/store/store'
import { useRoute, useRouter } from 'vue-router'
import { storeToRefs } from 'pinia'
import KeycloakService from 'sbc-common-components/src/services/keycloak.services'
import { StatusCodes } from 'http-status-codes'
import { SessionStorageKeys } from 'sbc-common-components/src/util/constants'
import SbcHeader from 'sbc-common-components/src/components/SbcHeader.vue'
Expand Down Expand Up @@ -256,34 +255,9 @@ export default defineComponent({
/** Initializes application. Also called for retry. */
const initApp = async (): Promise<void> => {
console.log('init app')
// reset errors in case of retry
resetFlags()
/** Starts token service that refreshes KC token periodically. */
// const startTokenService = async (): Promise<void> => {
// // // only initialize once
// // // don't start during Jest tests as it messes up the test JWT
// // if (localState.tokenService || localState.isJestRunning) return
//
// try {
// console.info('Starting token refresh service...')
// await KeycloakService.initializeToken()
// localState.tokenService = true
// } catch (e) {
// // this happens when the refresh token has expired
// // 1. clear flags and keycloak data
// localState.tokenService = false
// localState.profileReady = false
// sessionStorage.removeItem(SessionStorageKeys.KeyCloakToken)
// sessionStorage.removeItem(SessionStorageKeys.KeyCloakRefreshToken)
// sessionStorage.removeItem(SessionStorageKeys.KeyCloakIdToken)
// sessionStorage.removeItem(SessionStorageKeys.CurrentAccount)
// // 2. reload app to get new tokens
// location.reload()
// }
// }
// ensure user is authorized for this profile
const authResp = await loadAuth()
if (authResp.statusCode !== StatusCodes.OK) {
Expand Down
1 change: 0 additions & 1 deletion ppr-ui/src/utils/utilities.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export function isSigningIn (): boolean {
const path = window.location.pathname
console.log(path.includes('/login') || path.includes('/signin'))
return path.includes('/login') || path.includes('/signin')
}

Expand Down

0 comments on commit c1c8315

Please sign in to comment.