Skip to content

Commit e39ff52

Browse files
committed
Fix
1 parent 77b8666 commit e39ff52

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/rest/strategy/steam-auth.guard.ts

+5-3
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@ export class SteamAuthGuard extends AuthGuard("steam") {
1919
) {
2020
const res = context.switchToHttp().getResponse() as Response;
2121

22-
const isSteamFuckFest = (
23-
typeof err["message"] === "string" ? err["message"] : ""
24-
).includes("Failed to verify assertion");
22+
const isSteamFuckFest =
23+
err &&
24+
(typeof err["message"] === "string" ? err["message"] : "").includes(
25+
"Failed to verify assertion",
26+
);
2527
if (isSteamFuckFest) {
2628
res
2729
.status(302)

0 commit comments

Comments
 (0)