From 2182b67ca89c86e5d9b8be5e43fbd22bc6c43ddb Mon Sep 17 00:00:00 2001 From: Brian Schroer Date: Mon, 26 Feb 2024 14:36:59 -0800 Subject: [PATCH] 689 use config value for logout redirect param --- app/utils/AuthService.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/utils/AuthService.ts b/app/utils/AuthService.ts index 7fffb8212..a7108556b 100644 --- a/app/utils/AuthService.ts +++ b/app/utils/AuthService.ts @@ -3,6 +3,7 @@ import { defaultAuthObject } from "components/AppProvider"; import { post } from "utils/DataService"; import { SessionCacher } from "utils"; import type { AuthState, UserSignUpData } from "components/AppProvider"; +import config from "../config"; /* This class provides a set of methods that serve as an interface between our application @@ -114,7 +115,7 @@ export default class AuthService { setAuthState(defaultAuthObject); authClient.logout({ - returnTo: "http://localhost:8080", + returnTo: config.AUTH0_REDIRECT_URI, clientID: clientId, }); };