|
|
|
|
@ -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, |
|
|
|
|
|