List current user authentication methods and account security capabilities
curl --request GET \
--url https://api.acornops.dev/api/v1/auth/methods \
--cookie acornops_cp_session=const options = {method: 'GET', headers: {cookie: 'acornops_cp_session='}};
fetch('https://api.acornops.dev/api/v1/auth/methods', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"methods": [
{
"type": "password",
"username": "<string>",
"lastChangedAt": "2023-11-07T05:31:56Z",
"lastLoginAt": "2023-11-07T05:31:56Z"
}
],
"capabilities": {
"canChangePassword": true,
"canLinkOidc": true,
"canAddPassword": true
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}Auth and users
List current user authentication methods and account security capabilities
List current user authentication methods and account security capabilities
curl --request GET \
--url https://api.acornops.dev/api/v1/auth/methods \
--cookie acornops_cp_session=const options = {method: 'GET', headers: {cookie: 'acornops_cp_session='}};
fetch('https://api.acornops.dev/api/v1/auth/methods', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"methods": [
{
"type": "password",
"username": "<string>",
"lastChangedAt": "2023-11-07T05:31:56Z",
"lastLoginAt": "2023-11-07T05:31:56Z"
}
],
"capabilities": {
"canChangePassword": true,
"canLinkOidc": true,
"canAddPassword": true
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}