<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[NextJS + custom backend (NestJS)]]></title><description><![CDATA[<p dir="auto">Hi folks,</p>
<p dir="auto">I've been reading <a href="https://fusionauth.io/docs/quickstarts/quickstart-javascript-nextjs-web" rel="nofollow ugc">https://fusionauth.io/docs/quickstarts/quickstart-javascript-nextjs-web</a> and then I realized that it is communicating directly with FusionAuth. Which means that we where providing it our client secret. I am cool with that idea however I was wondering if that does mean that I can now wipe out my backend RESTful APIs since they are not needed anymore. I mean I can keep them or at least the ones for mobile.</p>
<p dir="auto">But in general I was not sure anymore about <a href="https://github.com/FusionAuth/fusionauth-javascript-sdk-express#server-code-requirements" rel="nofollow ugc">these endpoints</a>.</p>
<p dir="auto">I guess it boils down to whether I need full control over generating JWT tokens and things like that. Or maybe I am missing some points <img src="https://fusionauth.io/community/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f914.png?v=rcgg4tg866g" class="not-responsive emoji emoji-android emoji--thinking_face" style="height:23px;width:auto;vertical-align:middle" title=":thinking_face:" alt="🤔" />.</p>
<p dir="auto">I also loved the <code>@fusionauth/react-sdk</code> but like I mentioned it is not working and I dunno how to fix it either. I appreciate it if you could help me with that too.</p>
]]></description><link>https://fusionauth.io/community/forum/topic/2679/nextjs-custom-backend-nestjs</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Mar 2026 05:03:22 GMT</lastBuildDate><atom:link href="https://fusionauth.io/community/forum/topic/2679.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 14 May 2024 10:21:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to NextJS + custom backend (NestJS) on Mon, 20 May 2024 23:48:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://fusionauth.io/community/forum/uid/2737">@kasir-barati</a> When you say "I dunno if we can use them to change what Get /me endpoint returns", you might want to check out the <a href="https://fusionauth.io/docs/extend/code/lambdas/userinfo-populate" rel="nofollow ugc">UserInfo Populate Lamba</a>.</p>
]]></description><link>https://fusionauth.io/community/forum/post/7288</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/7288</guid><dc:creator><![CDATA[mark.robustelli]]></dc:creator><pubDate>Mon, 20 May 2024 23:48:25 GMT</pubDate></item><item><title><![CDATA[Reply to NextJS + custom backend (NestJS) on Sat, 18 May 2024 09:28:44 GMT]]></title><description><![CDATA[<p dir="auto">Thanks <a class="mention plugin-mentions-user plugin-mentions-a" href="https://fusionauth.io/community/forum/uid/2507">@mark-robustelli</a> for your pointers, although I know how we can leverage lambda functions to customize our JWT tokens but I dunno if we can use them to change what <code>GET /me</code> endpoint returns. That's part of the reason I opt to develop my own backend to communicate with FusionAuth.</p>
]]></description><link>https://fusionauth.io/community/forum/post/7279</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/7279</guid><dc:creator><![CDATA[kasir-barati]]></dc:creator><pubDate>Sat, 18 May 2024 09:28:44 GMT</pubDate></item><item><title><![CDATA[Reply to NextJS + custom backend (NestJS) on Fri, 17 May 2024 21:50:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://fusionauth.io/community/forum/uid/2737">@kasir-barati</a> It depends on what you are trying to do. If you are trying to authenticate a user for your application and the login flow that redirects to FusionAuth and returns to your application works, then you would not need the APIs.  Even if you need to customize the JWT, I would look into <a href="https://fusionauth.io/docs/extend/code/lambdas/" rel="nofollow ugc">lambdas</a> for that.</p>
]]></description><link>https://fusionauth.io/community/forum/post/7275</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/7275</guid><dc:creator><![CDATA[mark.robustelli]]></dc:creator><pubDate>Fri, 17 May 2024 21:50:44 GMT</pubDate></item><item><title><![CDATA[Reply to NextJS + custom backend (NestJS) on Thu, 16 May 2024 21:33:57 GMT]]></title><description><![CDATA[<p dir="auto">We have an open issue for it in <code>@fusionauth/react-sdk</code>: <a href="https://github.com/FusionAuth/fusionauth-javascript-sdk/issues/99" rel="nofollow ugc">https://github.com/FusionAuth/fusionauth-javascript-sdk/issues/99</a>. But it might not be the answer if you are looking for an answer that utilizes <code>next-auth</code>.</p>
]]></description><link>https://fusionauth.io/community/forum/post/7269</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/7269</guid><dc:creator><![CDATA[kasir-barati]]></dc:creator><pubDate>Thu, 16 May 2024 21:33:57 GMT</pubDate></item><item><title><![CDATA[Reply to NextJS + custom backend (NestJS) on Tue, 14 May 2024 18:16:33 GMT]]></title><description><![CDATA[<p dir="auto">Like I mentioned before I tried the docs and I ended up with <a href="https://github.com/FusionAuth/fusionauth-quickstart-javascript-nextjs-web/issues/9" rel="nofollow ugc">another bump</a> along the way. It seems like FusionAuth integration with NextJS is not the best idea. Maybe it's time to switch gears and try SPAs <img src="https://fusionauth.io/community/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f914.png?v=rcgg4tg866g" class="not-responsive emoji emoji-android emoji--thinking_face" style="height:23px;width:auto;vertical-align:middle" title=":thinking_face:" alt="🤔" />?</p>
]]></description><link>https://fusionauth.io/community/forum/post/7263</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/7263</guid><dc:creator><![CDATA[kasir-barati]]></dc:creator><pubDate>Tue, 14 May 2024 18:16:33 GMT</pubDate></item><item><title><![CDATA[Reply to NextJS + custom backend (NestJS) on Tue, 14 May 2024 10:28:37 GMT]]></title><description><![CDATA[<p dir="auto">I've also read:</p>
<ol>
<li><a href="https://fusionauth.io/community/forum/post/5781">https://fusionauth.io/community/forum/post/5781</a></li>
<li><a href="https://fusionauth.io/community/forum/post/5782">https://fusionauth.io/community/forum/post/5782</a></li>
</ol>
<p dir="auto">But none of them where what I needed. Though I jot down some comments there too <img src="https://fusionauth.io/community/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f603.png?v=rcgg4tg866g" class="not-responsive emoji emoji-android emoji--smiley" style="height:23px;width:auto;vertical-align:middle" title=":smiley:" alt="😃" />.</p>
]]></description><link>https://fusionauth.io/community/forum/post/7256</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/7256</guid><dc:creator><![CDATA[kasir-barati]]></dc:creator><pubDate>Tue, 14 May 2024 10:28:37 GMT</pubDate></item></channel></rss>