We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77b8666 commit e39ff52Copy full SHA for e39ff52
src/rest/strategy/steam-auth.guard.ts
@@ -19,9 +19,11 @@ export class SteamAuthGuard extends AuthGuard("steam") {
19
) {
20
const res = context.switchToHttp().getResponse() as Response;
21
22
- const isSteamFuckFest = (
23
- typeof err["message"] === "string" ? err["message"] : ""
24
- ).includes("Failed to verify assertion");
+ const isSteamFuckFest =
+ err &&
+ (typeof err["message"] === "string" ? err["message"] : "").includes(
25
+ "Failed to verify assertion",
26
+ );
27
if (isSteamFuckFest) {
28
res
29
.status(302)
0 commit comments