📝 Built-in parsing of multipart form data
🪪 Easily access authenticated user details
Here's how they work... 🧵
It's common for web apps (esp @AzureStaticApps) to post data from a form. There's now a parseFormBody() method on the @AzureFunctions request. Use it to access multipart form data, including files. Here's an example that uploads a file to blob storage.
You can now use req.user to access details about the authenticated user without parsing the request headers yourself. Works for both @AzureFunctions and @AzureStaticApps auth.
These are available in Node.js 16 on the @AzureFunctions v4 runtime. To use them in @AzureStaticApps, specify the version in your staticwebapp.config.json file.
• • •
Missing some Tweet in this thread? You can try to
force a refresh