nrjdalal / rdt-li

rdt.li self hostable, feature rich, minimalistic and open source URL shortener. Built with Next.js, Drizzle, NextAuth and Postgres.
https://rdt.li/site
MIT License
228 stars 13 forks source link

Up and running #128

Open ADSTfowlerj opened 1 month ago

ADSTfowlerj commented 1 month ago

Thank you for making this available. It took me a little while to get it up and running. I'm still having an issue with the Google oauth redirect link after it provides the token.

At first, Google wouldn't provide the token because the redirect URL didn't match the internal node.js app; e..g http://localhost:3000/api/auth/callback/google?state=auth.string.here. Once I included that in the Google oauth config, it would return the auth token, but it then sends me to that internal URL, instead of the external facing URL.

I didn't find any Google returns on how to fix this. Any suggestions?

Thanks.

nrjdalal commented 3 weeks ago

try github auth for once

what entries are you adding when creating api tokens aka

GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
nrjdalal commented 3 weeks ago
Screenshot 2024-08-20 at 9 59 07 PM

here is my config to generate creds