DevLeonardoCommunity / DevLeonardoCommunity/github-stats

fix github login on vercel preview deployments

Abierto
#12 10 comentarios 0 reacciones 0 asignados Ver en GitHub
bug help wanted
Lenguaje dominante
TypeScript
Estrellas
82
Forks
41
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.