简而言之:如何从 nextauth 获取 google id 令牌?
详细信息:我通过 Google 进行授权,之后我必须在服务器上验证 Google 的响应,之后服务器会将其访问令牌返回给我。一个构建后端的朋友告诉我他需要一个id_token,他会用 来检查google-auth。无论我如何尝试设置回调,我都无法获取id_token. 我只在 cookie 中获取会话令牌,没有其他任何信息。
id_token
google-auth
如果可以在没有 的情况下执行此操作id_token,请也写下。
authorization token reactjs next.js next-auth
authorization ×1
next-auth ×1
next.js ×1
reactjs ×1
token ×1