Set a new password from a reset link
curl --request POST \
--url https://app.trustivan.com/api/v1/auth/password/reset \
--header 'Content-Type: application/json' \
--data '
{
"token": "<string>",
"password": "<string>"
}
'import requests
url = "https://app.trustivan.com/api/v1/auth/password/reset"
payload = {
"token": "<string>",
"password": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({token: '<string>', password: '<string>'})
};
fetch('https://app.trustivan.com/api/v1/auth/password/reset', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/auth/password/reset"
payload := strings.NewReader("{\n \"token\": \"<string>\",\n \"password\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Set a new password from a reset link
Redeems the token from a reset mail. On success the password is set,
the link is spent, the address is marked verified, and every session
and refresh token the account had is revoked; no session is issued.
Audited as user.password_reset. Enforcement of single sign-on is
re-checked here, so a link mailed before enforcement was switched on
cannot restore a password login.
POST
/
auth
/
password
/
reset
Set a new password from a reset link
curl --request POST \
--url https://app.trustivan.com/api/v1/auth/password/reset \
--header 'Content-Type: application/json' \
--data '
{
"token": "<string>",
"password": "<string>"
}
'import requests
url = "https://app.trustivan.com/api/v1/auth/password/reset"
payload = {
"token": "<string>",
"password": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({token: '<string>', password: '<string>'})
};
fetch('https://app.trustivan.com/api/v1/auth/password/reset', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/auth/password/reset"
payload := strings.NewReader("{\n \"token\": \"<string>\",\n \"password\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}