Преглед изворни кода

use the configuration to get the URL of the resource server

Sven Czarnian пре 2 година
родитељ
комит
13d943b5fb
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/components/login.tsx

+ 1 - 1
src/components/login.tsx

@@ -11,7 +11,7 @@ export const Login: React.FC = () => {
     const url = [
       Configuration.vatsim.authorizeUrl,
       `?client_id=${Configuration.vatsim.clientId}`,
-      `&redirect_uri=http://localhost:3000/auth/vatsim`,
+      `&redirect_uri=${Configuration.resourceServer}/auth/vatsim`,
       `&response_type=code`,
       `&scope=full_name+vatsim_details`,
       `&approval_prompt=auto`,