notjoemartinez
notjoemartinez
CDCloudflare Developers
Created by notjoemartinez on 6/2/2024 in #workers-help
API Authentication with Auth0 / other options
Has anyone figured out how to implement authentication with auth0? The original example tutorial was removed and the PR that removed it stated it was due to security security issues although it doesn't state what they are. Another PR has been open since last march which apparently fixes the issues. I'm interested in seeing how other people have implemented API auth or if they have found a way to get it working with auth0.
1 replies
CDCloudflare Developers
Created by notjoemartinez on 1/5/2024 in #pages-help
Issues with functions routing with Nuxt.js
So I've been building out an API on pages using functions by connecting a git repo with the following structure
functions
├── ping.js
└── index.js
functions
├── ping.js
└── index.js
When I deploy it I can send a get request to mydomain.pages.dev/ping and it will respond with { "msg": "pong"} I want to deploy a Nuxt font end to this mydomain.pages.dev and have all the routes defined in my functions folder like /ping be considered API requests by the router. But when I deploy a Nuxt project with the functions folder included, Nuxt overrides all of the routes in folders and just redirects the page to / on Nuxt. The documentation on how to manage Nuxt routing with functions is pretty sparse https://developers.cloudflare.com/pages/framework-guides/deploy-a-nuxt-site/#use-bindings-in-your-nuxt-application
1 replies