Skip to content

Reauthenticate before account deletion

POST
/_torii/users/me/delete/oauth2
curl --request POST \
--url https://your-app.toriiauth.eu/_torii/users/me/delete/oauth2 \
--header 'Content-Type: application/json' \
--data '{ "provider": "example", "redirectPath": "example" }'

Starts an OAuth2 flow that deletes the account only after the same linked identity reauthenticates.

Host
string
Media typeapplication/json
object
provider
required
string
>= 1 characters
redirectPath
required
string
>= 1 characters
Examplegenerated
{
"provider": "example",
"redirectPath": "example"
}

OK

Media typeapplication/json
object
authorizationUrl
required
string
Examplegenerated
{
"authorizationUrl": "example"
}