mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-23 07:18:56 -05:00
make lint happy
This commit is contained in:
committed by
Alex Yang
parent
2a63657cf5
commit
38e0530741
@@ -2318,10 +2318,10 @@ export const callbackSSOSAML = (options?: SSOOptions) => {
|
||||
expiresAt: session.expiresAt,
|
||||
})
|
||||
.catch((e) =>
|
||||
ctx.context.logger.warn(
|
||||
"Failed to create SAML session lookup record",
|
||||
e,
|
||||
),
|
||||
ctx.context.logger.warn(
|
||||
"Failed to create SAML session lookup record",
|
||||
e,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -2814,10 +2814,10 @@ export const acsEndpoint = (options?: SSOOptions) => {
|
||||
expiresAt: session.expiresAt,
|
||||
})
|
||||
.catch((e) =>
|
||||
ctx.context.logger.warn(
|
||||
"Failed to create SAML session lookup record",
|
||||
e,
|
||||
),
|
||||
ctx.context.logger.warn(
|
||||
"Failed to create SAML session lookup record",
|
||||
e,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -2959,10 +2959,10 @@ async function handleLogoutResponse(
|
||||
await ctx.context.internalAdapter
|
||||
.deleteVerificationValue(key)
|
||||
.catch((e: unknown) =>
|
||||
ctx.context.logger.warn(
|
||||
"Failed to delete logout request verification value",
|
||||
e,
|
||||
),
|
||||
ctx.context.logger.warn(
|
||||
"Failed to delete logout request verification value",
|
||||
e,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -3028,10 +3028,10 @@ async function handleLogoutRequest(
|
||||
`${constants.SAML_SESSION_BY_ID_PREFIX}${data.sessionId}`,
|
||||
)
|
||||
.catch((e: unknown) =>
|
||||
ctx.context.logger.warn(
|
||||
"Failed to delete SAML session lookup during SLO",
|
||||
e,
|
||||
),
|
||||
ctx.context.logger.warn(
|
||||
"Failed to delete SAML session lookup during SLO",
|
||||
e,
|
||||
),
|
||||
);
|
||||
} else {
|
||||
ctx.context.logger.warn(
|
||||
@@ -3047,10 +3047,10 @@ async function handleLogoutRequest(
|
||||
await ctx.context.internalAdapter
|
||||
.deleteVerificationValue(key)
|
||||
.catch((e: unknown) =>
|
||||
ctx.context.logger.warn(
|
||||
"Failed to delete SAML session key during SLO",
|
||||
e,
|
||||
),
|
||||
ctx.context.logger.warn(
|
||||
"Failed to delete SAML session key during SLO",
|
||||
e,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -3182,19 +3182,19 @@ export const initiateSLO = (options?: SSOOptions) => {
|
||||
await ctx.context.internalAdapter
|
||||
.deleteVerificationValue(samlSessionKey)
|
||||
.catch((e) =>
|
||||
ctx.context.logger.warn(
|
||||
"Failed to delete SAML session key during logout",
|
||||
e,
|
||||
),
|
||||
ctx.context.logger.warn(
|
||||
"Failed to delete SAML session key during logout",
|
||||
e,
|
||||
),
|
||||
);
|
||||
}
|
||||
await ctx.context.internalAdapter
|
||||
.deleteVerificationValue(sessionLookupKey)
|
||||
.catch((e) =>
|
||||
ctx.context.logger.warn(
|
||||
"Failed to delete session lookup key during logout",
|
||||
e,
|
||||
),
|
||||
ctx.context.logger.warn(
|
||||
"Failed to delete session lookup key during logout",
|
||||
e,
|
||||
),
|
||||
);
|
||||
|
||||
await ctx.context.internalAdapter.deleteSession(session.session.id);
|
||||
|
||||
Reference in New Issue
Block a user