Commit d608200
authored
fix(builder): stop google calendar oauth callback from swallowing its own redirect (#1037)
The success redirect() lived inside the try block, so Next's NEXT_REDIRECT
throw was caught by the catch and reported as a connect failure even when
the OAuth exchange and DB write both succeeded. Move the redirect outside
try/catch and track the outcome via a connectStatus variable instead.1 parent 49803d2 commit d608200
1 file changed
Lines changed: 7 additions & 9 deletions
Lines changed: 7 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
598 | 598 | | |
599 | 599 | | |
600 | 600 | | |
| 601 | + | |
601 | 602 | | |
602 | 603 | | |
603 | 604 | | |
| |||
612 | 613 | | |
613 | 614 | | |
614 | 615 | | |
615 | | - | |
616 | | - | |
617 | | - | |
618 | | - | |
619 | | - | |
620 | 616 | | |
621 | 617 | | |
622 | 618 | | |
623 | 619 | | |
624 | 620 | | |
625 | | - | |
626 | | - | |
627 | | - | |
628 | | - | |
| 621 | + | |
629 | 622 | | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
630 | 628 | | |
631 | 629 | | |
632 | 630 | | |
| |||
0 commit comments