BARON-SSO 로그인 스테이징>실서버 교체 클라이언트ID 변경에 따른 수정
This commit is contained in:
@@ -257,6 +257,11 @@ const beginAuthorizationFlow = async () => {
|
||||
const authRedirectUrl = new URL(location, authUrl.toString());
|
||||
const loginChallenge = authRedirectUrl.searchParams.get('login_challenge');
|
||||
if (!loginChallenge) {
|
||||
const authError = authRedirectUrl.searchParams.get('error');
|
||||
const authErrorDescription = authRedirectUrl.searchParams.get('error_description');
|
||||
if (authError || authErrorDescription) {
|
||||
throw new Error(authErrorDescription || authError || 'Authorization redirect did not provide login_challenge');
|
||||
}
|
||||
throw new Error('login_challenge not found');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user