Pierre
CCConvex Community
•Created by mrvdot on 12/12/2023 in #support-community
How to setup Custom OIDC Auth (Logto)
I use Svelte, not React. And don't worry, I also spent several days scratching my head before I understood how things worked 🙂
But it's actually straightforward to integrate Logto with Convex.
You should create a route (like
/my-token
) which returns the ID token from the Logto client.
Then, you should use the setAuth
of the Convex client, like this :
80 replies
CCConvex Community
•Created by mrvdot on 12/12/2023 in #support-community
How to setup Custom OIDC Auth (Logto)
Just asked to support access token : https://github.com/get-convex/convex-backend/issues/75
80 replies
CCConvex Community
•Created by mrvdot on 12/12/2023 in #support-community
How to setup Custom OIDC Auth (Logto)
In the auth convex params, you should set the domain with
https://your-logto-instance.com/oidc
(not the admin) with the application ID.80 replies
CCConvex Community
•Created by mrvdot on 12/12/2023 in #support-community
How to setup Custom OIDC Auth (Logto)
I use the Custom Auth Integration. I also discovered that adding Sentry to the Convex (with the SENTRY_DSN variable) allows you to better understand auth errors.
It helped me a lot.
I have to say that unfortunatly Convex only support ID token, not access token.
80 replies
CCConvex Community
•Created by mrvdot on 12/12/2023 in #support-community
How to setup Custom OIDC Auth (Logto)
I FINALLY figured out why it wasn't working @skyturtle !
I'm using Logto (version 1.26.0), deployed on my own server. In the console, I had correctly changed the key to use the RSA algo (/console/signing-keys).
But... it still wasn't working.
Asking the Logto docs' AI, I found out that after changing the key, you have to RESTART the Logto instance (in my case, restart the Docker service).
And now it finally works! What a relief!
Thanks Convex for this great product! I love Convex!
Support for other algorithms like ES384 would be greatly appreciated.
I also think adding a page for Logto in your documentation, similar to Clerk or Auth0, would be great for the community (since you can't self-host Clerk or Auth0).
Thanks for your help @ballingt and @erquhart !
80 replies
CCConvex Community
•Created by mrvdot on 12/12/2023 in #support-community
How to setup Custom OIDC Auth (Logto)
No, I was hoping to use LogTo, but since I can't get it to work, I'm wondering if I should just switch to BetterAuth.
80 replies
CCConvex Community
•Created by mrvdot on 12/12/2023 in #support-community
How to setup Custom OIDC Auth (Logto)
Unfortunately, not.
Having not heard back from @ballingt or @mrvdot . I don't know what's causing the holdup.
I've put it on the back burner for now and I am waiting for the Better Auth component to be further developed.
80 replies
CCConvex Community
•Created by jason on 3/27/2025 in #general
Have you had a chance to explore `Better Auth`
Thank you so much !!!!!
I will test it today !
169 replies
CCConvex Community
•Created by mrvdot on 12/12/2023 in #support-community
How to setup Custom OIDC Auth (Logto)
Hi @erquhart ,
Is it because of the algorythm issue with convex ?
80 replies
CCConvex Community
•Created by jason on 3/27/2025 in #general
Have you had a chance to explore `Better Auth`
Thank you @erquhart for working at this ! It would be awesome to have a Convex Component for that !
169 replies
CCConvex Community
•Created by mrvdot on 12/12/2023 in #support-community
How to setup Custom OIDC Auth (Logto)
Yes, all was good
80 replies
CCConvex Community
•Created by mrvdot on 12/12/2023 in #support-community
How to setup Custom OIDC Auth (Logto)
Hi @erquhart ,
Thank you ! I tried the RSA key of Logto. Still not working.
@ballingt , did you find something ?
80 replies
CCConvex Community
•Created by jason on 3/27/2025 in #general
Have you had a chance to explore `Better Auth`
Hi,
Did you use the JWT plugin of better-auth ?
Did Convex recognize it ?
169 replies
CCConvex Community
•Created by mrvdot on 12/12/2023 in #support-community
How to setup Custom OIDC Auth (Logto)
Hi @ballingt ,
Did you find something ?
80 replies
CCConvex Community
•Created by mrvdot on 12/12/2023 in #support-community
How to setup Custom OIDC Auth (Logto)
Hi @Tom ,
Do you need a new token.
80 replies
CCConvex Community
•Created by mrvdot on 12/12/2023 in #support-community
How to setup Custom OIDC Auth (Logto)
Oh thank you so much !
80 replies
CCConvex Community
•Created by mrvdot on 12/12/2023 in #support-community
How to setup Custom OIDC Auth (Logto)
Hi @Tom ,
Thank you so much for your help !
Here is the JWT token :
eyJhbGciOiJFUzM4NCIsInR5cCI6IkpXVCIsImtpZCI6Im1IUTNRaHIxRDVFNUhMWnFoY0kyZTJLYkpCMzQ2NHFObTVaZnVTaGZuVlEifQ.eyJzdWIiOiJ3NzZ4NDhzb3F6NTMiLCJuYW1lIjoiRXl0YW4gUElSTkFZIiwicGljdHVyZSI6bnVsbCwidXBkYXRlZF9hdCI6MTc0MzA3NzkwNjg0OSwidXNlcm5hbWUiOiJwaXJuYXkiLCJjcmVhdGVkX2F0IjoxNzQzMDI4ODMwNzUxLCJhdF9oYXNoIjoiamVYLXJTVEdVLXFkNFFIRFZ2UWdpYmlVRWFkUWFMVnkiLCJhdWQiOiJyZ2Z3YmVjMmtzcW1ueXYwcnN6OW8iLCJleHAiOjE3NDMxMTM3MDAsImlhdCI6MTc0MzExMDEwMCwiaXNzIjoiaHR0cHM6Ly9hdXRoLmNvbnZleC5kZXZleXRhbi5jb20vb2lkYyJ9.sRfgHhZW4-ghcU8DnLytA8kLWajMA_stANxvxw__HT3X8Y4UHxmvcog65Ml9trbEGxXEnyp-OAjaVNC6JQUABeG9NK72_Qs747CDZ_1PRELoXY_QbiRo-UQBHK8ZOC99
Also, here is the auth config :
export default{providers:[{domain:"https://auth.convex.deveytan.com/oidc",applicationID:"rgfwbec2ksqmnyv0rsz9o"}]};
80 replies