cURL
curl --request POST \ --url https://api.example.com/api/auth/oauth/configs \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "provider": "google", "clientId": "<string>", "clientSecret": "<string>", "redirectUri": "<string>", "scopes": [ "<string>" ], "useSharedKey": true } '
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "provider": "google", "clientId": "<string>", "redirectUri": "<string>", "scopes": [ "<string>" ], "useSharedKey": true, "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z" }
Create a new OAuth provider configuration (admin only)
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
google
github
discord
linkedin
facebook
instagram
tiktok
apple
x
spotify
microsoft
OAuth configuration created