dowski
CCConvex Community
•Created by Starlord on 12/18/2024 in #support-community
Force logout user / invalidate JWT token
yep good point
35 replies
CCConvex Community
•Created by Starlord on 12/18/2024 in #support-community
Force logout user / invalidate JWT token
i was playing around in a copy of the https://github.com/get-convex/convex-auth-example repo which is what the diff is based on
35 replies
CCConvex Community
•Created by Starlord on 12/18/2024 in #support-community
Force logout user / invalidate JWT token
here's a diff showing how you might do something like trigger a logout when the backend session is deleted:
https://gist.github.com/dowski/95836458ef482ec0b8cd74bf701c67a1
35 replies
CCConvex Community
•Created by Starlord on 12/18/2024 in #support-community
Force logout user / invalidate JWT token
it probably is and i'm just wrong 🙃
35 replies
CCConvex Community
•Created by Starlord on 12/18/2024 in #support-community
Force logout user / invalidate JWT token
i'm not sure, actually
35 replies
CCConvex Community
•Created by Starlord on 12/18/2024 in #support-community
Force logout user / invalidate JWT token
i think overall you could change your code that wants to ensure a user us logged in from just looking at
getAuthUserId
to also ensuring that they have a valid entry in authSessions
35 replies
CCConvex Community
•Created by Starlord on 12/18/2024 in #support-community
Force logout user / invalidate JWT token
i'm not sure that it's reactive to changes in the database
35 replies
CCConvex Community
•Created by Starlord on 12/18/2024 in #support-community
Force logout user / invalidate JWT token
i think that's a connection/websocket scoped bit of data
35 replies
CCConvex Community
•Created by Starlord on 12/18/2024 in #support-community
Force logout user / invalidate JWT token
getAuthUserId
is kind of a thin wrapper around getting the user from the context35 replies
CCConvex Community
•Created by NlaakALD on 12/11/2024 in #support-community
Are we sure this is working?
i can definitely trigger some errors in the same code location with stale cookies, but haven't repro'ed the exact one you're seeing
70 replies
CCConvex Community
•Created by NlaakALD on 12/11/2024 in #support-community
Are we sure this is working?
interesting - i wonder if maybe there are some stale cookies for
localhost
from a prior setup attempt? can you look in your browser's dev tools and see if that's the case?70 replies
CCConvex Community
•Created by NlaakALD on 12/11/2024 in #support-community
Are we sure this is working?
👍
70 replies
CCConvex Community
•Created by NlaakALD on 12/11/2024 in #support-community
Are we sure this is working?
(i think they pushed yesterday, iirc)
70 replies
CCConvex Community
•Created by NlaakALD on 12/11/2024 in #support-community
Are we sure this is working?
cool, glad that helped w/ GitHub - those docs are brand new, so not surprised you missed them
70 replies
CCConvex Community
•Created by NlaakALD on 12/11/2024 in #support-community
Are we sure this is working?
here are some relevant docs: https://labs.convex.dev/auth/config/oauth/github#fill-out-the-form-with-your-app-details
70 replies
CCConvex Community
•Created by NlaakALD on 12/11/2024 in #support-community
Are we sure this is working?
did you use your convex deployment URL as your GitHub callback URL or is that using localhost?
70 replies
CCConvex Community
•Created by NlaakALD on 12/11/2024 in #support-community
Are we sure this is working?
so i think it's generally working
70 replies
CCConvex Community
•Created by NlaakALD on 12/11/2024 in #support-community
Are we sure this is working?
hi, i just did a fresh clone of the repo and went through the
npm install
and npm run dev
steps and was able to get GitHub and Resend to log me in70 replies
CCConvex Community
•Created by gioru on 8/27/2024 in #support-community
Need help with handling Convex Auth signIn errors in prod
it's not a holistic solution to the error handling problem though
30 replies
CCConvex Community
•Created by gioru on 8/27/2024 in #support-community
Need help with handling Convex Auth signIn errors in prod
here's an example of handling invalid password using ConvexError: https://github.com/get-convex/convex-auth/commit/c95f02700207a7679189ad3fbb1765512e085615
30 replies