remove org scope check before parsing

This commit is contained in:
peintnermax
2024-04-03 15:52:39 +02:00
parent 9153b5c474
commit 87a2344b56

View File

@@ -89,10 +89,7 @@ export async function GET(request: NextRequest) {
const { authRequest } = await getAuthRequest(server, { authRequestId });
let organization;
if (
authRequest?.scope &&
authRequest.scope.find((s: string) => ORG_SCOPE_REGEX.test(s))
) {
if (authRequest?.scope) {
const orgScope = authRequest.scope.find((s: string) =>
ORG_SCOPE_REGEX.test(s)
);