Password provider async callbacks
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.
