Dozor
User

Unlink a linked OAuth account

Only unlinks the local `Account` row — does NOT revoke the provider-side consent (users manage that in Google / GitHub settings). Last-login-method guard runs in a `Serializable` transaction: counts remaining OAuth accounts + passkeys + email-OTP availability AFTER the hypothetical unlink. If zero would remain, returns `409` and the row is preserved — prevents single-click lockout.

DELETE/api/user/accounts/{provider}

Only unlinks the local Account row — does NOT revoke the provider-side consent (users manage that in Google / GitHub settings). Last-login-method guard runs in a Serializable transaction: counts remaining OAuth accounts + passkeys + email-OTP availability AFTER the hypothetical unlink. If zero would remain, returns 409 and the row is preserved — prevents single-click lockout.

Path Parameters

provider*string

OAuth provider name (google, github, etc.)

Response Body

curl -X DELETE "https://loading/api/user/accounts/string"
Empty
Empty
Empty
Empty