|
@@ -254,4 +254,11 @@ serve(wrapHandler('oauth-shoprenter-callback', async (req) => {
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
|
|
+ } catch (error) {
|
|
|
|
|
+ console.error('[ShopRenter] OAuth callback error:', error)
|
|
|
|
|
+ return new Response(
|
|
|
|
|
+ JSON.stringify({ error: 'Failed to process OAuth callback' }),
|
|
|
|
|
+ { status: 500, headers: { ...corsHeaders, 'Content-Type': 'application/json' } }
|
|
|
|
|
+ )
|
|
|
|
|
+ }
|
|
|
}))
|
|
}))
|