The Fifth World

Get OAuth 2.0 providers

This endpoint returns a list of OAuth 2.0 hosts that the currently logged-in member has added to her account. It works almost exactly like GET /members/{id}/auths, except where that endpoint expects you to identify the member in question with a path parameter (and thus allowing you to request this information for any arbitrary member), this endpoint only allows you to find it for your own account after you have authenticated.

Request

HTTP Headers
HTTP Header Value
Authorization A valid JSON Web Token, of the form Bearer ENCODEDHEADER.ENCODEDPAYLOAD.ENCODEDSIGNATURE

Examples

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

Response

If you’ve provided a valid JSON Web Token and the API can save the token given, 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 have connected to your account.

If the API could not verify your authentication, it responds with a 401 HTTP status.

Example

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