Bladeren bron

use the configuration to get the URL of the resource server

Sven Czarnian 2 jaren geleden
bovenliggende
commit
13d943b5fb
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  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`,