Closed ThisIsMani closed 1 week ago
This PR will introduce auth_id field in email types and also email APIs.
auth_id
When an email is triggered from a API which gets auth_id, then that will be used to construct the email URL as well.
Closes #5119.
All the following APIs will accept a query param called auth_id.
Example:
curl --location 'http://localhost:8080/user/connect_account?auth_id=2d784c51-c6ba-4adf-8d9f-407049ddacd2' \ --header 'Content-Type: application/json' \ --data-raw '{ "email": "email" }'
In the email received from the API, the url in the email will also have the same auth_id query param which is the same value as above.
auth_id param is optional, and if it is not sent, the email link also will not have any parameter.
cargo +nightly fmt --all
cargo clippy
Type of Change
Description
This PR will introduce
auth_id
field in email types and also email APIs.When an email is triggered from a API which gets
auth_id
, then that will be used to construct the email URL as well.Additional Changes
Motivation and Context
Closes #5119.
How did you test it?
All the following APIs will accept a query param called
auth_id
.Example:
In the email received from the API, the url in the email will also have the same
auth_id
query param which is the same value as above.auth_id
param is optional, and if it is not sent, the email link also will not have any parameter.Checklist
cargo +nightly fmt --all
cargo clippy