DevLeonardoCommunity / DevLeonardoCommunity/github-stats
fix github login on vercel preview deployments
- 主要语言
- TypeScript
- 星标
- 82
- 派生
- 41
- PR 合并指标
- 30 天内没有已合并 PR
描述
It's probably something I should do but I haven't found a solution so far, so I'm open to get some help :)
When logging in via GitHub App, on the settings I must add a callback URL that will be used to redirect the user after sign in
(see docs: https://docs.github.com/en/apps/creating-github-apps/registering-a-github-app/about-the-user-authorization-callback-url)
This works fine for production and localhost as I specified the two URLs:

But it doesn't work for Vercel's deployment previews as they have different URLs.
I haven't found a way to put wildcards on GitHub or specify a redirect URL that works so... if someone has ideas, let me know! :D
贡献指南
调研方向
从 GitHub App 用户授权回调 URL 文档以及 issue 中描述的现有 production 和 localhost 回调配置开始。调查如何在不使用 issue 所说不可用的 wildcard 设置的情况下支持 Vercel preview URL。完成标准是:GitHub 登录能够从 deployment preview 以及 production 和 localhost 成功重定向。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- github, nextjs, react, typescript
- 领域
- authentication, cloud, web-dev
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100