ants
ants
NNuxt
Created by ants on 12/14/2024 in #❓・help
Supabase auth redirect rules
I have a Nuxt app with an API route defined at /server/api/scan/[club].ts, but accessing it will redirect the user to the /login route. This is my Nuxt config
supabase: {
redirectOptions: {
login: '/login',
callback: '/auth/callback',
exclude: ['/', '/login', '/auth/callback', '/api/scan'],
},
},
supabase: {
redirectOptions: {
login: '/login',
callback: '/auth/callback',
exclude: ['/', '/login', '/auth/callback', '/api/scan'],
},
},
how could I exclude the dynamic server route from the redirect middleware? Also /api/scan/* and that also doesn't work, while turning off the redirects fixes it obviously
supabase: {
redirect: false,
},
supabase: {
redirect: false,
},
5 replies
NNuxt
Created by ants on 3/30/2023 in #❓・help
Nuxt 3 with Slack's Bolt.js
Has anyone set up Nuxt alongside Slack's bolt JS? https://slack.dev/bolt-js/concepts
1 replies