Explorar o código

use the configuration to get the URL of the resource server

Sven Czarnian %!s(int64=2) %!d(string=hai) anos
pai
achega
13d943b5fb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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`,