mirror of
https://github.com/aljazceru/ditto.git
synced 2026-01-01 04:34:24 +01:00
Support OAuth OOB
This commit is contained in:
@@ -209,6 +209,10 @@ const oauthAuthorizeController: AppController = async (c) => {
|
||||
relays: bunker.searchParams.getAll('relay'),
|
||||
});
|
||||
|
||||
if (redirectUri === 'urn:ietf:wg:oauth:2.0:oob') {
|
||||
return c.text(token);
|
||||
}
|
||||
|
||||
const url = addCodeToRedirectUri(redirectUri, token);
|
||||
|
||||
return c.redirect(url);
|
||||
|
||||
Reference in New Issue
Block a user