brash-librarian-74886
06/12/2024, 7:25 AMmagnificent-energy-493
session
after hook.
When this hook is enabled, a Set-Cookie
HTTP Header is set alongside the HTTP 303 redirect after successful registration or login.
This header contains the Ory Session Cookie, which is used for session management.
Here is an example of the HTTP headers set by the session
after hook:
HTTP/1.1 303 See Other
Cache-Control: 0
Location: <http://127.0.0.1:4455/>
Set-Cookie: csrf_token=b8OebRPTPr5ow23mA5gIZmFNLeuMbv8pZz1jT1Ex7ys=; Path=/; Domain=127.0.0.1; Max-Age=31536000; HttpOnly
Set-Cookie: ory_kratos_session=MTU5OTE2ODc2N3xEdi1CQkFFQ180SUFBUkFCRUFBQVJfLUNBQUVHYzNSeWFXNW5EQThBRFhObGMzTnBiMjVmZEc5clpXNEdjM1J5YVc1bkRDSUFJR055VlROMGRteHhSakJrUzBkbmRUUjBlVFY1V0RCRWFVTnJXVmR6V25oaHx2DICsB6IMbaHSQwnYITUZqr7Qx7CxUlnaneJWH495wQ==; Path=/; Expires=Fri, 04 Sep 2020 21:32:47 GMT; Max-Age=86400; HttpOnly; SameSite=Lax
Vary: Cookie
Date: Thu, 03 Sep 2020 21:32:47 GMT
Content-Length: 0
Are those the headers you are looking for?brash-librarian-74886
06/12/2024, 9:22 AMsub
for a user so Kratos will create a new identity. Luckily I have some info that helps me identify it and what I'm doing is deleting the new account and patching the old one with the new sub
. The problem is that session
hook doesn't know about this and the session is not valid (expected). I'm just trying to improve a little bit the UX in my client, which I could improve if I could get a heather forwarded from the web_hook where I do thismagnificent-energy-493
I have a situation (due to Sign with Apple transfer) where basically Apple will send a newSo this happens on every login? Is this specific to your use case or something that Apple generally does here?for a usersub
brash-librarian-74886
06/12/2024, 9:34 AMbrash-librarian-74886
06/12/2024, 9:34 AMbrash-librarian-74886
06/12/2024, 9:47 AMsub
if we are able to know it before hand. But we still want to improve the plan B as much as possible in case we need itmagnificent-energy-493