Delete OAuth 2.0 providers
This endpoint removes an OAuth 2.0 provider’s token from a member’s account. After running this endpoint, she will no longer have the ability to log in using this OAuth 2.0 provider.
Request
HTTP Header | Value |
---|---|
Authorization |
A valid JSON Web Token, of the form Bearer ENCODEDHEADER.ENCODEDPAYLOAD.ENCODEDSIGNATURE
|
Path parameter | Value |
---|---|
provider |
A string indicating the OAuth 2.0 provider to remove from your account. Accepted values are
patreon , discord , google , github ,
facebook , or twitter . |
Examples
Response
If you’ve provided a valid JSON Web Token, the API attempts to delete any token from the
provider specified for the logged-in member. It responds with a 200
HTTP status and a
JSON object. This object has a single property, auths
, which provides an array of
strings identifying those providers that you still have connected to your account after the deletion.
If the API could not verify your authentication, it responds with a 401
HTTP status.