make if more explicit
Some checks failed
continuous-integration/drone/pr Build is failing

This commit is contained in:
viehlieb 2022-12-23 14:53:04 +01:00
parent f5c31bd209
commit 5269cd1f8f

View File

@ -18,5 +18,7 @@ export const redirectToProvider = (provider: IProvider, redirectUrl = '') => {
window.location.href = `${provider.authUrl}?client_id=${provider.clientId}&redirect_uri=${redirectUrl}${provider.key}&response_type=code&scope=openid email profile&state=${state}`
}
export const redirectToProviderOnLogout = (provider: IProvider) => {
if (provider.logoutUrl.length > 0) window.location.href = `${provider.logoutUrl}`
if (provider.logoutUrl.length > 0){
window.location.href = `${provider.logoutUrl}`
}
}