dowski
CCConvex Community
•Created by Nick Schaefer on 12/23/2024 in #support-community
Request for better Swift Error Handling
any ideas on what a better error would look like? it felt like a good place to assert b/c it feels like a developer error that should be solved before shipping, vs. something that should be able to be caught
8 replies
CCConvex Community
•Created by Nick Schaefer on 12/23/2024 in #support-community
Request for better Swift Error Handling
hey sorry for the delay responding here - i was away for the holidays and then busy with other stuff lately
8 replies
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