Fix: azure auth callback from UI (#3048)

This commit is contained in:
darth-coder00 2022-03-01 22:18:54 +05:30 committed by GitHub
parent 98ddf5fba3
commit 282c1f68ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -95,7 +95,11 @@ export const getAuthConfig = (
auth: {
authority,
clientId,
redirectUri: 'http://localhost:3000/callback',
redirectUri: isDev()
? 'http://localhost:3000/callback'
: !isNil(callbackUrl)
? callbackUrl
: `${window.location.origin}/callback`,
postLogoutRedirectUri: '/',
},
cache: {