Skip to content

Commit 3133bd6

Browse files
authored
Merge pull request #70 from data-for-change/63-implement-use-authentication-with-google-service
test
2 parents 93403b3 + 7a471d5 commit 3133bd6

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/services/AuthService.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,7 @@ class AuthService {
2424
* GET /sd-authorize/google
2525
*/
2626
getAuthorizeUrl = (redirectUrl?: string) => {
27-
const url = new URL(`${this.apiUrl}/sd-authorize/google`);
28-
if (redirectUrl) {
29-
url.searchParams.append('redirect_url', redirectUrl);
30-
}
27+
const url = new URL(`${this.apiUrl}/sd-authorize/google?redirect_url=${redirectUrl}`);
3128
return url.toString();
3229
};
3330
}

0 commit comments

Comments
 (0)