Request password reset
curl --request POST \
--url https://prod-auth.tktchurch.com/oauth/password/reset/request \
--header 'Content-Type: application/json' \
--data '
{
"email": "[email protected]"
}
'import Foundation
let parameters = ["email": "[email protected]"] as [String : Any?]
let postData = try JSONSerialization.data(withJSONObject: parameters, options: [])
let url = URL(string: "https://prod-auth.tktchurch.com/oauth/password/reset/request")!
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.timeoutInterval = 10
request.allHTTPHeaderFields = ["Content-Type": "application/json"]
request.httpBody = postData
let (data, _) = try await URLSession.shared.data(for: request)
print(String(decoding: data, as: UTF8.self))const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({email: '[email protected]'})
};
fetch('https://prod-auth.tktchurch.com/oauth/password/reset/request', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://prod-auth.tktchurch.com/oauth/password/reset/request"
payload = { "email": "[email protected]" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"error": "invalid_request",
"error_description": "Redirect URI not registered for this client"
}Request password reset
Always returns success (no account enumeration). Rate-limited.
POST
/
oauth
/
password
/
reset
/
request
Request password reset
curl --request POST \
--url https://prod-auth.tktchurch.com/oauth/password/reset/request \
--header 'Content-Type: application/json' \
--data '
{
"email": "[email protected]"
}
'import Foundation
let parameters = ["email": "[email protected]"] as [String : Any?]
let postData = try JSONSerialization.data(withJSONObject: parameters, options: [])
let url = URL(string: "https://prod-auth.tktchurch.com/oauth/password/reset/request")!
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.timeoutInterval = 10
request.allHTTPHeaderFields = ["Content-Type": "application/json"]
request.httpBody = postData
let (data, _) = try await URLSession.shared.data(for: request)
print(String(decoding: data, as: UTF8.self))const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({email: '[email protected]'})
};
fetch('https://prod-auth.tktchurch.com/oauth/password/reset/request', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://prod-auth.tktchurch.com/oauth/password/reset/request"
payload = { "email": "[email protected]" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"error": "invalid_request",
"error_description": "Redirect URI not registered for this client"
}Body
application/json
Account email; always returns success
Response
Accepted
