Fix useLogin should invalidate the getPermissions cache
#10392
Merged
useLogin should invalidate the getPermissions cache
#10392