如何将自定义 header 添加到 google oauth 回调请求

how to add a custom header to google oauth callback request

我正在使用基于 jwt 的身份验证系统,我想确保 google 在 header 中发回此令牌。有没有办法让 google 自定义 header 发送回服务器?

不在 header 中,但您可以使用状态参数将其包含在 URL 中。