Skip to content

Commit 8412f42

Browse files
committed
chore(auth): add comment explaining why safeCallbackUrl skip re-validation
1 parent 5516642 commit 8412f42

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

apps/sim/app/(auth)/login/login-form.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ export default function LoginPage({
175175
}
176176

177177
try {
178+
// callbackUrl is already validated at initialization — either a passing callbackUrlParam or '/workspace'
178179
const safeCallbackUrl = callbackUrl
179180
let errorHandled = false
180181

apps/sim/ee/sso/components/sso-form.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ export default function SSOForm() {
9898
}
9999

100100
try {
101+
// callbackUrl is already validated at initialization — either a passing callbackUrlParam or '/workspace'
101102
const safeCallbackUrl = callbackUrl
102103

103104
await client.signIn.sso({

0 commit comments

Comments
 (0)