DevLeonardoCommunity / DevLeonardoCommunity/github-stats

fix github login on vercel preview deployments

未关闭
#12 10 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug help wanted
主要语言
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:
![image](https://github.com/Balastrong/github-stats/assets/7253929/716e995d-1878-4c0a-980a-46c54af4460f)

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

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。