Passwordless - Send SMS

A magic link cannot be sent to an unregistered phone When the `test` parameter is true, the external (SMS) service is bypassed

Request

Method: POST
Route: api/auth/passwordless/sms
Example: api/auth/passwordless/sms
Input Value
phone 341 725 152
section sms/random
callback https://www.pellegrini.net/aut-non-vero-beatae-rem-ea-reprehenderit-eos
test true
Request Headers
host: localhost:49527
user-agent: Symfony
accept: application/json
accept-language: en-us,en;q=0.5
accept-charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
content-length: 147
content-type: application/json

Response

401 JSON
Response Headers
cache-control: no-cache, private
date: Tue, 17 May 2022 08:25:50 GMT
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 59
{
    "data": null,
    "errors": {
        "message": "Unknown user"
    }
}

Time: 0.4

select * from `users` where (`phone_verified_at` is not null or `email_verified_at` is not null) and `phone_verified_at` is not null and `phone` = ? limit 1
Bindings
0: 341 725 152

Request

Method: POST
Route: api/auth/passwordless/sms
Example: api/auth/passwordless/sms
Input Value
phone 341 725 152
section sms/random
callback https://www.pellegrini.net/aut-non-vero-beatae-rem-ea-reprehenderit-eos
test true
Request Headers
host: localhost:49527
user-agent: Symfony
accept: application/json
accept-language: en-us,en;q=0.5
accept-charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
content-length: 147
content-type: application/json