Hi, I am having trouble setting up bearer tokens with social login. The server sends the token back in the header set-auth-token but the client is not receiving it.
When I log response.headers it never contains set-auth-token. Setup: Next.js client at localhost:3000 Fastify backend at localhost:4001 CORS: void server.register(cors, { origin: ["http://localhost:5001", "http://localhost:3000"], credentials: true, exposedHeaders: ["set-auth-token", "Set-Auth-Token"], }); I am new to authentication and still learning. Any help would be appreciated.