DieMantra
CCConvex Community
•Created by DieMantra on 3/26/2025 in #support-community
Password provider async callbacks
I have a weird app requirement from a client where they much login using convex auth with the password provider, whilst also logging in to another api that returns an auth token to authenticate requests to another API.
My plan was to accept the dual credentials at login, get the auth token, store it in the users table and then use it from there.
I am wondering if there is anywhere in the sign flow that allows async fetching of this token and setting it on the user table? As far as i could see there was only an async callback for user creation or update, but that doesnt work when doing credentials.
It would also be a benefit to be able to make a call to this external api when the convex auth session is being refreshed, to test if the auth token is still valid, if not i could terminate the convex session at the same time.
At the moment i just do these two logins separately on the client and then call a mutation from the client once both have logged in to update the user table with the auth token.
2 replies
CCConvex Community
•Created by DieMantra on 11/12/2024 in #support-community
Clerk auth v6 integration with Convex provider in Nextjs

4 replies