Hey :wave: I’m using the one-time code passwordles...
# ory-network
f
Hey 👋 I’m using the one-time code passwordless method for registration and sign-in flows, and sign in after registration is enabled. After the registration, the call to the
registration
endpoint returns a status 200 with a valid session, but the session cookie seems to be missing in the response. It’s really inconvenient because then users have to go through an additional sign-in flow. Could you help me with this issue ?
p
Hi @fancy-evening-36350 I'll take a look for you quick. It's supposed to set a cookie
👍 1
It seems we don't configure this part of the config in the console yet. I'll open an issue for this. You can still configure this value via the Ory CLI like so:
Copy code
ory patch project <project-id> --replace '/services/identity/config/selfservice/flows/registration/after/code/hooks=[{"hook": "session"}]'
This adds a "session" hook to the after registration code method. After patching your project you should have a configuration file that shows something similar to this:
Copy code
...
  selfservice:
    flows:        
      registration:
            after:
              code:
                hooks:
                - hook: session
              hooks: []
              oidc:
                hooks:
                - hook: session
              password:
                hooks:
                - hook: session
              webauthn:
                hooks:
                - hook: session
You can track the issue here https://github.com/ory/network/issues/340
f
Thank you @proud-plumber-24205 for your help 🙏
I have run the CLI command above and it works well !
🎉 1