diff --git a/src/features/AuthStore/helpers.tsx b/src/features/AuthStore/helpers.tsx index 1bf305b7..80b41fa0 100644 --- a/src/features/AuthStore/helpers.tsx +++ b/src/features/AuthStore/helpers.tsx @@ -30,18 +30,22 @@ export const getClientNameByRedirectUri = () => { const redirectUrl = () => { return 'https://insports.tv/redirect' - const clientName = getClientNameByRedirectUri() - switch (true) { - case (process.env.NODE_ENV === 'development' || client.name === 'lff'): - return `${window.origin}/redirect` - case (ENV === 'staging' || ENV === 'preproduction'): - // return `https://${stageENV}.insports.tv/redirect` - return `${window.origin}/redirect` - default: - return `https://${clientName}.tv/redirect` - } } +// const redirectUrl = () => { +// return 'https://insports.tv/redirect' +// const clientName = getClientNameByRedirectUri() +// switch (true) { +// case (process.env.NODE_ENV === 'development' || client.name === 'lff'): +// return `${window.origin}/redirect` +// case (ENV === 'staging' || ENV === 'preproduction'): +// // return `https://${stageENV}.insports.tv/redirect` +// return `${window.origin}/redirect` +// default: +// return `https://${clientName}.tv/redirect` +// } +// } + export const getClientSettings = (): Settings => ({ authority: AUTH_SERVICE, automaticSilentRenew: true,