feat: implement pending checkout handling in PricingSection; redirect users based on checkout state in AuthCallbackContent

This commit is contained in:
Usman Baig
2026-01-30 23:00:46 +01:00
parent b8a2e5ac3a
commit 559c8a74dd
2 changed files with 49 additions and 6 deletions

View File

@@ -83,7 +83,12 @@ function AuthCallbackContent() {
localStorage.removeItem('oauth_state')
localStorage.removeItem('oauth_code_verifier')
router.push('/')
// * Check for pending checkout
if (localStorage.getItem('pulse_pending_checkout')) {
router.push('/pricing')
} else {
router.push('/')
}
} catch (err: any) {
setError(err.message)
}