r/lovable • u/Equivalent-Ad-4991 • 4d ago
Help Github access when connected via Lovable ?
Hello all,
I'm trying to get into my Github account that connected with Lovable (Settings > Git). When I click "View on Github" it takes me to a login screen.
I don't remember creating a password when I connected to Git via Lovable. How the heck do I get my access back ?
Thanks,
2
1
u/Dvill0618 4d ago
Lovable connects through GitHub's authorize flow, so there's no separate password. The login screen is just GitHub asking you to sign in to the account you connected. Hit "Forgot password" on that GitHub login page with the email you'd have used, and if you signed up with Google or Apple, use that button on the login page instead. Once you're back in, turn on 2FA and save the recovery codes, because that repo is basically your backup of the whole app.
1
u/Vast-Hunt-9484 4d ago
github does let you sign in with either your username or the email on the account, so you can try both. the catch is that the account lovable linked may be on a different email than the one you tried, and the reset only works for the email that's actually on that account. on the lovable settings page note the exact username it shows, then open github.com/that-username in a signed-out window to confirm the account exists. if you originally signed in with google or apple instead of a password, use that button on github's login page rather than the password form.
1
u/Remarkable_Capital29 2d ago
Lovable doesn't create the GitHub account, it connects to one you already had (you authorised it with OAuth at the time, which is why you don't remember a password). So it's a normal GitHub account:
- Go to github.com, "Forgot password", enter the email you used with Lovable. If you get nothing, try your other emails, people often have an old GitHub account from years ago.
- If you signed up to GitHub with Google/Apple at the time, use that button on the GitHub login page rather than a password.
- In Lovable, Settings > Git shows the repo URL. The username in that URL (github.com/USERNAME/repo) tells you which account you're looking for.
Once you're in, go to GitHub Settings > Applications and check Lovable is still authorised, otherwise sync stops silently.
1
u/Ahmed_Hisham0 18h ago
lovable doesn't create a github account, it just does the oauth flow with one you already had. so that login screen is github's normal login and there's no lovable password to recover.
try the email you use for lovable at github.com/password_reset. if it says no account exists, you probably have a second github account (old work or school email) and lovable linked that one. check chrome's saved passwords for github.com too, it might still be in there.
once you're in, settings > applications lists what lovable was authorised to do, but you don't need to reconnect anything just to get access back.
1
u/Dense_Shape5347 17h ago
if Lovable created repo through GitHub OAuth with your existing GitHub session, you need to trigger a password reset directly on GitHub using email address tied to your primary GitHub account rather than looking for credentials inside Lovable settings
1
u/Voiceofshay_08 4d ago
Firstly, connecting GitHub to Lovable doesn’t create a new GitHub password. Try signing in at GitHub with the same email or social login you used when you first created the account. If you used an email and password but forgot it, reset it at https://github.com/password_reset. Check that you’re signing into the same GitHub account Lovable connected to.