#support for next-auth ur Lucia auth?

25 messages · Page 1 of 1 (latest)

sharp venture
#

I’m curious if anyone has a good repo or template which sets up a next app using next-auth, Lucia auth, or anything custom that doesn’t use a third party auth service?

#

Like a convex next-auth template with google and GitHub social logins

elfin kettle
#

like that one, @sharp venture ^?

sharp venture
#

yes, but I don't see social media setup on that; id that easy to add in @oak hull ?

oak hull
vestal pebble
oak hull
#

Yes, very likely (although auth support for Svelte might be less polished than for React for some time, as everything takes time to build)

tawdry mortar
tawdry mortar
#

Hey @oak hull , do you know if there are any updates on this?

naive lava
elfin kettle
#

@tawdry mortar we have a pretty major release of our auth coming out in a week or perhaps a little more. we'll announce to everyone when it's ready!

tawdry mortar
#

Awesome, thank you @elfin kettle

tawdry mortar
oak hull
tawdry mortar
#

Ah yes, this was super helpful. Figured it out, I ran node generateKeys.mjs again, the values changes for JWKS and CONVEX_AUTH_PRIVATE_KEY, so I only updated one and left the other the same. So now after running it and use both it works, figured I was doing that in this section of the docs. Thank you @oak hull 🙏

naive lava
#

@elfin kettle @oak hull quick question with the convex auth can we able to get the refresh token from the oauth providers like linkedin for example?

oak hull
#

@naive lava can you say more? Why do you need the refresh token from the oauth provider?

naive lava
#

Sure @oak hull so I am building this thing social media scheduler thing and currently I allow my users to login / signup only through social media for example twitter , linkedin etc

and after getting signed in I access their refresh token to schedule posts and post through the app

Currently, in clerk, I am using this method to get the refresh token:
https://clerk.com/docs/references/backend/user/get-user-oauth-access-token#get-user-oauth-access-token

Use Clerk's Backend SDK to retrieve the corresponding OAuth access token for a user.

random saddle
#

convex-auth the missing piece ❤️

elfin kettle
#

coming very soon!

#

just had a security review yesterday 😉

runic copper
#

im excited

hexed mauve
#

It would be great to surface these early labs, as I literally spent my last entire two days setting up authjs with hono in convex. Mostly got working. And only ran across https://labs.convex.dev/auth when I ran across James repo using the deprecated @oak hull/convex-auth. Now I feel like I could have saved all those hours of exploration if I had just seen this earlier. Some of us like to tinker, so if this was in the works, would have loved to know before all the hours I put in. 😀 I barely use discord, and only ever come here when I have a problem. And convex has been awesome so far, so yay to no discord visits.

Either way, love the product. And just came to say, love the email updates, and would have loved to receive some type of preview of this in the email as well.

oak hull
#

@hexed mauve it's not released yet, and I'm breaking it daily, so it probably wouldn't have saved you time. But we're gearing up to release it very soon ™️