Quick question. The `toSession` / `/whoami` will o...
# ory-network
f
Quick question. The
toSession
/
/whoami
will only succeed if the session is active, correct? Because the PHP example (https://www.ory.sh/docs/getting-started/integrate-auth/php#validate-and-login) is checking
$session["active"]
. Thanks.
h
Yes, that is true!
🙏 1
If the session is not active, the API will return a 401
f
Thanks. That’s what I thought. I was just confused by the example.
h
That’s true! ping @magnificent-energy-493