/api/auth/oauth
Info
Requires authentication
GET Get OAuth providers
200 Ok (JSON)
Array of OAuth Objects:
Field Name | Type | Description |
---|---|---|
id | string | An autogenerated ID of the provider |
provider | string | The name of the provider, discord, github or google |
token | string | The OAuth access_token of the user |
refresh | string | The OAuth refresh_token of the user |
username | string | The username of the O |
[{"id": 2,"provider": "DISCORD","userId": 18,"username": "dicedtomato","token": "x","refresh": "x"},{"id": 3,"provider": "GITHUB","userId": 18,"username": "diced","token": "gho_x","refresh": null}]
User
The user model is used to represent a user in the...
/api/auth/oauth/[provider]
Whenever there are errors, the response will redir...
Last updated: 12/24/2022
Edit this page on GitHub