Resend passwordless code
POST
/{apiBasePath}/{tenantId}/signinup/code/resendPath parameters
apiBasePathstringrequiredIts value depends on the apiBasePath set by the user
tenantIdstringThe tenant against which the request is made. If left empty, the default tenant will be used.
Header parameters
ridstringThe passwordless recipe ID
Request body
application/jsondeviceIddeviceIdrequiredThis should be saved on the starting device to enable the manual code entry flow.
preAuthSessionIdpreAuthSessionIdrequiredAn identifier that used to identify the login attempt/device.
shouldTryLinkingWithSessionUserbooleanResponses
200Started the passwordless sign in/up process.
One of:
object
statusstringAllowed:
OKRESTART_FLOW_ERRORgeneralErrorResponse
statusstringError status code
Allowed:
GENERAL_ERRORmessagestringError message
404Resource not found error
string500Internal server error
stringTry it
Server
Parameters
Bodyapplication/json
Request
curl -X POST "/auth/public/signinup/code/resend" \
-H "Content-Type: application/json" \
-d '{
"deviceId": "TU/52WOcktSv99zqaAZuWJG9BSoS0aRLfCbep8rFEwk=",
"preAuthSessionId": "kFmkPQEAJtACiT2w/K8fndEuNm+XozJXSZSlWEr+iGs=",
"shouldTryLinkingWithSessionUser": false
}'const response = await fetch("/auth/public/signinup/code/resend", {
method: "POST",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({
"deviceId": "TU/52WOcktSv99zqaAZuWJG9BSoS0aRLfCbep8rFEwk=",
"preAuthSessionId": "kFmkPQEAJtACiT2w/K8fndEuNm+XozJXSZSlWEr+iGs=",
"shouldTryLinkingWithSessionUser": false
})
});import requests
response = requests.post(
"/auth/public/signinup/code/resend",
headers={
"Content-Type": "application/json"
},
json={
"deviceId": "TU/52WOcktSv99zqaAZuWJG9BSoS0aRLfCbep8rFEwk=",
"preAuthSessionId": "kFmkPQEAJtACiT2w/K8fndEuNm+XozJXSZSlWEr+iGs=",
"shouldTryLinkingWithSessionUser": False
},
)Response
{
"status": "OK"
}"Not Found""Internal Error"