From 6e6e050f856be48f1ea5d8658d09554a2ec56f9f Mon Sep 17 00:00:00 2001 From: Jason Kulatunga Date: Sun, 30 Oct 2022 16:36:36 -0700 Subject: [PATCH] fixing redirect_uri parametr. --- frontend/src/app/services/auth.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/services/auth.service.ts b/frontend/src/app/services/auth.service.ts index e00a1269..29701dd9 100644 --- a/frontend/src/app/services/auth.service.ts +++ b/frontend/src/app/services/auth.service.ts @@ -29,7 +29,7 @@ export class AuthService { console.log(resp) const authorizeUrl = new URL(resp.data) - authorizeUrl.searchParams.append('redirect_uri', window.location.href); + authorizeUrl.searchParams.append('redirect_uri', window.location.href); //only auth/signup and /auth/signin urls are allowed window.location.href = authorizeUrl.toString(); } }