From d9c85d043c30737514dc49cd2ea419bde5ad6275 Mon Sep 17 00:00:00 2001 From: Dmitry Kosolapov home Date: Wed, 31 Aug 2022 14:51:19 +0700 Subject: [PATCH] maybe fix redirect_uri for auth --- src/features/AuthStore/helpers.tsx | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) 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,