The trick is mentioned in the docs for put_resp_cookie - the corresponding fetch_cookies call needs to specify which cookies are signed/encrypted.
put_resp_cookie
fetch_cookies
For instance, here’s a spot that does it in phx.gen.auth’s code:
phx.gen.auth