forked from baron/baron-sso
custom claim 권한체크 확인
This commit is contained in:
@@ -157,10 +157,16 @@ async function mockUserfrontApis(
|
||||
function collectClientFailures(page: Page): string[] {
|
||||
const failures: string[] = [];
|
||||
page.on("pageerror", (error) => {
|
||||
failures.push(error.message);
|
||||
const text = error.message.trim();
|
||||
if (text !== "") {
|
||||
failures.push(text);
|
||||
}
|
||||
});
|
||||
page.on("console", (message) => {
|
||||
const text = message.text();
|
||||
const text = message.text().trim();
|
||||
if (text === "") {
|
||||
return;
|
||||
}
|
||||
if (
|
||||
message.type() === "error" ||
|
||||
(/exception|verify_failed|verification failed|인증 실패/i.test(text) &&
|
||||
|
||||
Reference in New Issue
Block a user