Adding Google Auth to TinyJS 0 ▲ Raymond Camden 5 hours ago · 9 min read1863 words · Tech · hide · 0 comments A few days ago I posted about my experience playing around with TinyJS. This is a very light "web to desktop app" platform for - well - building desktop apps. Its simplicity and similarity to PhoneGap (at least for the desktop) has got me interested in seeing what I can build with the project. One of my ideas would be improved with a login system so I naturally looked into adding a "Login with Google" feature. While this was mostly straightforward, I ran into some oddities and figured I'd share it here. I went into this exploration with a basic idea of how I'd approach it: Create an app in the Google Cloud console to represent my app, getting the client id and secret. Generate a link using the standard OAuth flow For my redirect URL, use a custom URI scheme (like mycustomapp://) so that on redirect from Google, it would open the app automatically The response would include the code I'd exchange for an access token (and refresh token), at which point I could get the user's profile and… No comments yet. Log in to reply on the Fediverse. Comments will appear here.