I need to develop a widget, like a banner, that can be embedded in different websites. The user can register/login via the widget, and the user session should be persisted when the user visits another website containing this banner.
One way to do it is to include the banner via iframe in those browsers. However, this is becoming increasingly due to the ever-stricter third-party cookie policies implemented by modern browsers.
Of course, the banner can be embedded in the website in a div, and I could store the session token cookie under the domain of the website (as opposed to the domain of the widget/banner), but then this token would not be accessible when visiting from another website.
What are modern strategies/approaches to achieve the above?