chore: update @ciphera-net/ui dependency to version 0.0.49 and refactor terminology in layout content for consistency

This commit is contained in:
Usman Baig
2026-02-09 09:51:19 +01:00
parent 309ba53ec7
commit 03fcfba180
5 changed files with 19 additions and 11 deletions

View File

@@ -36,7 +36,9 @@ function AuthCallbackContent() {
if (localStorage.getItem('pulse_pending_checkout')) {
router.push('/welcome')
} else {
router.push('/')
const raw = searchParams.get('returnTo') || '/'
const safe = (typeof raw === 'string' && raw.startsWith('/') && !raw.startsWith('//')) ? raw : '/'
router.push(safe)
}
} else {
setError(authMessageFromErrorType(result.error as AuthErrorType))