* Get `onErrorReturnTo` URL * If no code return to previous page * On invalid permissions, return to previous page * When not enough permissions given, invalidate the credential created * Type fix * Stripe go back to previous page on cancel * Clean up console.logs * Add early returns when redirecting --------- Co-authored-by: sean-brydon <[email protected]> Co-authored-by: Udit Takkar <[email protected]>