Skip to content

Commit 994ebb0

Browse files
committed
🐛 fix missing apiUrl in /oauth2/token
1 parent ee3a450 commit 994ebb0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/models/controller.model.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1150,9 +1150,9 @@ export class Controller {
11501150
throw new ServerError(501, 'OAuth2 flow not implemented');
11511151
}
11521152

1153-
const { apiKey } = await this.adapter.handleOAuth2Callback(req, res);
1153+
const credentials = await this.adapter.handleOAuth2Callback(req, res);
11541154

1155-
res.send(apiKey);
1155+
res.json(credentials);
11561156
} catch (error) {
11571157
errorLogger(
11581158
'oAuth2Callback',

0 commit comments

Comments
 (0)