make if more explicit
continuous-integration/drone/pr Build is failing Details

This commit is contained in:
viehlieb 2022-12-23 14:53:04 +01:00
parent f5c31bd209
commit 5269cd1f8f
1 changed files with 3 additions and 1 deletions

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}`
}
}