Trpc google authentication passport
I am using passport js but i don't know why my code is not working like its not taking me to google signup
const GoogleAuth = middleware(async (opts) => {
passport.authenticate('google', { failureRedirect: '/login', successRedirect: '/protected' })
return opts.next()
});
google: googleProcedure.query(async (opts) => {
console.log(opts);
}),