bdy 1.22.35-beta → 1.22.36-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/distTs/package.json +1 -1
- package/distTs/src/api/client.js +3 -3
- package/package.json +1 -1
package/distTs/package.json
CHANGED
package/distTs/src/api/client.js
CHANGED
|
@@ -600,7 +600,7 @@ class ApiClient {
|
|
|
600
600
|
async registerApp(name, redirectUrl) {
|
|
601
601
|
return await this.request({
|
|
602
602
|
method: 'POST',
|
|
603
|
-
path: '/
|
|
603
|
+
path: '/oauth2/register',
|
|
604
604
|
body: {
|
|
605
605
|
redirect_uris: [redirectUrl],
|
|
606
606
|
client_name: name,
|
|
@@ -615,7 +615,7 @@ class ApiClient {
|
|
|
615
615
|
async getApp(clientId) {
|
|
616
616
|
return await this.request({
|
|
617
617
|
method: 'GET',
|
|
618
|
-
path: `/
|
|
618
|
+
path: `/oauth2/register/${encodeURIComponent(clientId)}`,
|
|
619
619
|
headers: {
|
|
620
620
|
authorization: `Bearer ${this.clientToken || ''}`,
|
|
621
621
|
},
|
|
@@ -625,7 +625,7 @@ class ApiClient {
|
|
|
625
625
|
async deleteApp(clientId) {
|
|
626
626
|
return await this.request({
|
|
627
627
|
method: 'DELETE',
|
|
628
|
-
path: `/
|
|
628
|
+
path: `/oauth2/register/${encodeURIComponent(clientId)}`,
|
|
629
629
|
headers: {
|
|
630
630
|
authorization: `Bearer ${this.clientToken || ''}`,
|
|
631
631
|
},
|