Send Email OTP
Send OTP code to user's email for 2FA verification.
Requires the 2FA cookie set by /auth/sign-in/email.
Body
application/json
- Type: booleantrust
Device Trust this device for 30 days after verification
Responses
- 200
OTP sent to email
- 401
Missing 2FA cookie
Request Example for post/auth/two-factor/send-otp
curl https://api.gpcn.com/v1/auth/two-factor/send-otp \
--request POST \
--header 'Content-Type: application/json' \
--data '{
"trustDevice": true
}'
No Body
.png)