fix(core): deprecation notices thrown at login/logout even if there's no valid reason
Merge pull request #7569 from iionly/issue-6493-2

fix(core): deprecation notices thrown at login/logout even if there's no...