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);
    }),


I am using passport js but i don't know why my code is not working like its not taking me to google signup
Was this page helpful?