Is there a way, we can disable protected routes (showing the login page if not logged in) in Spartacus while accessing through SmartEdit?
It’s not supported by default in Spartacus. But you might try writing a customization for it.
You should first analyze all consequences and model the security threats related to your requirement, then consider if you accept them e.g.:
You will need to overwrite the method
ProtectedRoutesGuard.canActivate()
to always return true
in case when you’re in the smart edit context.
And to check if you’re in the smart edit context, you might want to use the method SmartEditLauncherService.isLaunchedInSmartEdit()