Use the Auth token in your server-side (Nodejs Tested)
GPL-2.0 License
Use the Auth token in your server-side (Nodejs Tested)
This middleware is created to be integrated with NodeJS + Express + Supabase
const supabase_middleware = require('../config/supabase_middleware')
req
and res
: const {user,supabase} = await supabase_middleware(req,res);
user
and supabase
, the user will contain the user details, supabase will be the istance with the current session to use for your next logical callsaccess_token
under currentSession
into Authentication: Bearer to your endpoint