Our great sponsors
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
- configure the API in order to prevent the token from expiring, and store it in the next js app as an environnement variable (.env.local), so that it's not exposed to the client and can be used for fetching the api when generating static pages. The official ecommerce theme of Next.Js seems to use that method (https://github.com/vercel/commerce/blob/f770ad7a91059a2ecfbb9de1bac111dfe7016124/framework/bigcommerce/api/index.ts#L82)
You could encrypt the cookie with Next Iron Session and use your first option?
Related posts
- Is there an open source ecommerce API? Something similar to WooCommerce?
- Next.js 10.1 – 3x Faster Refresh, Image Improvements, Apple Silicon Support
- Deploy Full-Stack Next.js T3App with Cognito and Prisma using AWS Lambda
- 7 Frameworks, One SAML Jackson - Your Open Source Single Sign-On Solution
- Ask HN: Freelancer? Seeking freelancer? (April 2024)