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
  • Trust this device for 30 days after verification

Responses

  • OTP sent to email

  • 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