alkem-io / client-web

Default web frontend, enabling browsing the Alkemio platform - so the hosted Challenges and communities collaborating around those Challenges.
https://alkem.io
European Union Public License 1.2
15 stars 6 forks source link

After user verifies email address, they should be logged in #6838

Open techsmyth opened 2 months ago

techsmyth commented 2 months ago

Describe the bug The flow at the moment is that after the user verifies their email address they have to back and login. That should be done automatically.

To Reproduce Steps to reproduce the behavior:

  1. Sign up for an account
  2. Click on the link to verify the supplied email address
  3. User needs to click back to login page to be able to then login

Expected behavior User is logged in after verifying email address.

valentinyanakiev commented 2 months ago

I am not sure why this is using the bug template, given there was already a story about it in the past and it was never supported natively by Ory Kratos. Session hook is not supported after verification (still unsupported in v1.2). We can try using a web hook and work it around. Web hook is supported in the schema, e.g.:

    verification:
      enabled: true
      ui_url: http://localhost:3000/verify
      after:
        default_browser_return_url: http://localhost:3000/login
        hooks:
          - hook: web_hook
            config:
              url: https://your-service.example.com/verification-complete
              method: POST
              body:

It will be some custom work thou, it is not coming out-of-the-box.

techsmyth commented 2 months ago

@valentinyanakiev agreed not a bug, it was that I copied another issue + the label came with it. Might be still worth doing this work as it is a real disconnect in the login flow at the moment, and taking away even one step would be a big deal. @SimoneZaza