<@U04UQ68083H> when config for verification `use: ...
# ory-copilot
n
@chilly-king-10285 when config for verification
use: code
can we receive magic link for verification?
b
A message from kapa.ai
No, when the configuration for verification is set to
use: code
, you will not receive a magic link for verification. According to the [Ory documentation on address verification](https://www.ory.sh/docs/kratos/self-service/flows/verify-email-account-activation#choosing-the-right-strategy), there are two strategies for verifying user addresses: 1. One-time codes (
code
) 2. Magic Links (
link
) When
use: code
is specified in the configuration, it means that the system will use the one-time code method. In this case, Ory Identities sends an email with a 6-digit code to the user, which they must enter in a dedicated UI text field to verify their address. The configuration explicitly defines which method is used, as shown in this example from the [verification flow configuration](https://www.ory.sh/docs/kratos/self-service/flows/verify-email-account-activation#configuration):
Copy code
yaml flows:   verification:     use: code # Defines which method is used, one of 'code' or 'link'.
It's important to note that Ory recommends using the
code
method as it mitigates many drawbacks associated with magic links. The magic link method (
link
) is considered a legacy solution and is set to be removed in future releases. If you want to receive magic links instead of codes, you would need to change the configuration to
use: link
. However, this is not recommended due to the limitations and potential issues associated with magic links.