Trpc google authentication passport

const GoogleAuth = middleware(async (opts) => {
passport.authenticate('google', { failureRedirect: '/login', successRedirect: '/protected' })
return opts.next()
});

google: googleProcedure.query(async (opts) => {
console.log(opts);
}),
const GoogleAuth = middleware(async (opts) => {
passport.authenticate('google', { failureRedirect: '/login', successRedirect: '/protected' })
return opts.next()
});

google: googleProcedure.query(async (opts) => {
console.log(opts);
}),
I am using passport js but i don't know why my code is not working like its not taking me to google signup
0 Replies
No replies yetBe the first to reply to this messageJoin