smsauth

command
v0.7.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2023 License: MIT Imports: 4 Imported by: 0

README

Part 1. Request for SMS:

POST https://web.tada.team/api/v4/auth/sms/send-code

{
    "phone": "+79091234567"
}

Sample response:

{
    "_time": "95ms",
    "ok": true,
    "result": {
        "phone": "+79091234567",
        "code_valid_until": "2020-09-29T17:32:51.623856Z",
        "next_code_at": "2020-09-29T17:23:50.623856Z",
        "code_length": 4
    }
}

Part 2. Confirm code from SMS:

POST https://web.tada.team/api/v4/auth/sms/get-token

 {
    "code": "4321",
    "phone": "+79091234567"
}

Sample response:

{
    "_time": "63ms",
    "ok": true,
    "result": {
        "token": "*************",
        "me": {
            // ...some data...
        }
    }
}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL