make if more explicit
continuous-integration/drone/pr Build is failing
Details
continuous-integration/drone/pr Build is failing
Details
This commit is contained in:
parent
f5c31bd209
commit
5269cd1f8f
|
@ -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}`
|
||||
}
|
||||
}
|
||||
|
|
Reference in New Issue