post review fixes
This commit is contained in:

committed by
Ali BARIN

parent
6e80ff4eb6
commit
d96f4999bc
@@ -1,5 +1,5 @@
|
|||||||
import { IGlobalVariable } from '@automatisch/types';
|
import { IGlobalVariable } from '@automatisch/types';
|
||||||
import { URLSearchParams } from 'url';
|
import { URL, URLSearchParams } from 'url';
|
||||||
import getBaseUrl from '../common/get-base-url';
|
import getBaseUrl from '../common/get-base-url';
|
||||||
|
|
||||||
export default async function generateAuthUrl($: IGlobalVariable) {
|
export default async function generateAuthUrl($: IGlobalVariable) {
|
||||||
@@ -19,6 +19,6 @@ export default async function generateAuthUrl($: IGlobalVariable) {
|
|||||||
const path = `/oauth/authorize?${searchParams.toString()}`;
|
const path = `/oauth/authorize?${searchParams.toString()}`;
|
||||||
|
|
||||||
await $.auth.set({
|
await $.auth.set({
|
||||||
url: baseUrl + path,
|
url: new URL(path, baseUrl).toString(),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user