S
SolidJS14mo ago
Tommypop

Google Oauth in Solid: Best Practices

Hi, I've got a solid start project with an actix web backend. What's the recommended approach for implementing google oauth so that I can get the google user id to the actix backend so that I can store data against it, and is there a library for this that doesn't entirely leverage solid start's server for session storage, as I'd ideally like to handle that in my actix backend? I know I can use google identity directly, and then get and send a google id token to the server, which I can then verify and use https://developers.google.com/identity/gsi/web/guides/verify-google-id-token, but it would be nice if there were an idiomatic solid way of doing the former part.
4 Replies
Unknown User
Unknown User14mo ago
Message Not Public
Sign In & Join Server To View
Tommypop
Tommypop14mo ago
Thanks, I'll definitely take a look at oauth4webapi, as auth.js seems to rely on solid start.
Unknown User
Unknown User14mo ago
Message Not Public
Sign In & Join Server To View
Tommypop
Tommypop14mo ago
yeah, I did a spotify oauth provider from scratch a while ago and that was relatively painless I was considering doing the same for google