DevLeonardoCommunity / DevLeonardoCommunity/github-stats

fix github login on vercel preview deployments

オープン
#12 コメント 10 件 リアクション 0 件 担当者 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

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。