Open
Description
Overview
Exceptions (including ConvexError) are unhandled when thrown from a ConvexCredentials.authorize() method.
Setup
export const { auth, signIn, signOut, store } = convexAuth({
providers: [
ConvexCredentials({
id: 'simple-auth',
authorize: async () => {
throw new ConvexError('Testing for @sshader')
},
}),
],
})
Outcome

Expected outcome
At minimum, the exception should be caught by Convex. But ideally, throwing an exception from authorize() should bubble up to the client side so that the client can handle the error. We should be able to use exceptions or some other mechanism to communicate failure conditions to the client during authorize() in order to better control the authorization process.
Metadata
Metadata
Assignees
Labels
No labels