wobsoriano / fastify-next-auth

Auth.js plugin for Fastify.
MIT License
49 stars 3 forks source link

Implementation when Client and Backend belong to different domains #2

Open Elsoberanold opened 1 year ago

Elsoberanold commented 1 year ago

Hi! Thank you for this library! You have done an amazing job! Could you please answer a doubt of mine? Is it possible to implement this auth aproach when frontend and backend are being hosted on different domains? Do I need to install this library on both sides and define NEXTAUTH_URL to the backend domain? How should I deal with CORS? Can I just make simple API calls to nextauth rest API? For example: "/api/auth/signin"