瀏覽代碼

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`,