feat: implement pending checkout handling in PricingSection; redirect users based on checkout state in AuthCallbackContent
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user