Help with implementing OAuth

Hello,

I am a trying to learn how to utilize Replit with little programming experience.

I am trying to develop utilities to a number of platforms that use OAuth 2.0 for authentication. I have simply not been able to figure out how to get this to work, regardless the SaaS platform.

Specifically, I am trying to connect to the quickbooks online development sandbox. I keep receiving an error message stating “Error: Refresh token is invalid or expired. The user needs to reauthorize your app.”

The QB Client ID: and Client Secret match. The call back URI matches.

I could use some guidance before I develop Tourette’s Syndrome. Thanks.

I just wrestled with QB online and was able to finally get it to work and it’s syncing data easily.

I suggest you use Firebase for auth and token handling. Replit’s built-in auth is quite literally the worst thing ever.

I start all new apps with Firebase auth and get that bear out of the way early on.

Interesting.

Are you simply calling on Firebase authentication (via Replit assistant)? Any setup work on the Firebase you recommend? Guidance on the prompts you utilized would be helpful.

Thanks for the suggestions.

I made this just for your Dean. Hopefully, others will get some value out of it, too. Sorry about the occasionally hot mic!

5 Likes

This is like the exact opposite of the Billy Madison game show scene. Thank you.

I award you :100: points!

1 Like

Hopefully God will still have mercy!

Really should be pinned to the top somewhere with how much auth gets asked about. Thanks!

2 Likes

Just a follow up - I have been able to connect to both QuickBooks and Xero via instructions in the video. It still has taken a few rounds with the magic hammer to get all of the settings right via the assistant. But more progress in two days than two months.

Thanks again.

Oh man, happy to hear that! And enjoyed making this video. If anyone has any other questions I can help with, I’d be happy to give it a go.

Bump to keep the one up top

Thanks for the video. Subscribed.
Hope you have time in the future to create more tutorials.

By the way, is the process similar if you were to implement authentication using Supabase?

1 Like

I’ll definitely make more. Glad it helped.

I’ll look into supa. I’m familiar but haven’t integrated an app on Replit with it yet. Maybe now would be a good time.