Server actions vs API routes for a POST OAuth
I have defined this server action that I want to trigger to exchange the code for an access token in a /app/auth/page.tsx where the page.tsx is a Client Component(‘use client’).
I have defined this server action that I want to trigger to exchange the code for an access token in a /app/auth/page.tsx where the page.tsx is a Client Component(‘use client’).