Linking Logged-in User with GitHub App Repository Events using Callback URL #2013
Unanswered
KentonParton
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My question is: How can I link the logged-in user ID (user123) with the GitHub user ID (github_user456) received in the Probot events?
Here's the flow:
One approach I'm considering is to use a callback URL that points to my NextJS app. The callback URL would include the
installation_id
as a parameter. Probot would store theinstallation_id
in a database, and my NextJS app would poll the database to find the matchinginstallation_id
. Once a match is found, I can link thesender.id
from the installation event with theuser.id
from the NextJS account.Once the user accounts are linked, I can display the appropriate repositories to the user in the app's UI.
Any suggestions or insights on how to handle this scenario would be greatly appreciated. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions