The Fifth World

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 Headers
HTTP Header Value
Authorization A valid JSON Web Token, of the form Bearer ENCODEDHEADER.ENCODEDPAYLOAD.ENCODEDSIGNATURE
Path Parameters
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

Example Request
DELETE /v1/members/providers/facebook HTTP/1.1 Host: api.thefifthworld.com Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c

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.

Example

Example Response
{ "auths": [ "github", "discord" ] }