使用 JWT 和 Goolge 的 PassportJS 验证

问题描述 投票:0回答:0

因此,当我尝试使用 jwt 或 google 在 api 中对用户进行身份验证时,passport.authenticate 会重定向到 google

passport.authenticate(["jwt", "google"], { session: false, scope: ["profile", "email"] })

我不知道如何更改它,当我尝试做一个自定义中间件时,它总是会出现 passport.authenticate() 错误,我怎样才能使它工作

javascript express passport.js passport-google-oauth passport-jwt
© www.soinside.com 2019 - 2024. All rights reserved.