Context:
===
When a user signs in to my site, they get authenticated through kratos and a session cookie is set.
The issue is, I want my website's session to be synced with the chrome extension for the site.
(An example of this would be that when you sign in to
grammarly.com, the extension also recognizes that you're signed in. So you don't have to sign in through two places)
Of course, Kratos's cookies are HttpOnly but my extension could still grab the cookie through chrome.cookies.
Then the extension forwards the cookie to my api server.
Question:
===
How does my api server confirm that a session cookie is valid?
Would it be through ory/client-java? Or is that only for self hosted ory instances?
If so, how do I validate a cookie on the ory network?