File tree Expand file tree Collapse file tree 1 file changed +6
-13
lines changed
packages/auth-services/src/queue-manager/src/handlers/pkpMint Expand file tree Collapse file tree 1 file changed +6
-13
lines changed Original file line number Diff line number Diff line change @@ -14,22 +14,15 @@ export async function handlePkpMintTask(jobData: {
1414 requestBody : MintPKPRequest ;
1515 reqId ?: string ;
1616} ) : Promise < any > {
17- // Validate and transform the request using the unified schema
18- // This handles the WebAuthn pubkey validation internally
19- const validatedRequest = await MintPKPRequestSchema . parseAsync (
20- jobData . requestBody
21- ) ;
22-
23- const userAuthData : Optional < AuthData , 'accessToken' > = {
24- authMethodId : validatedRequest . authMethodId ,
25- authMethodType : validatedRequest . authMethodType ,
26- publicKey : validatedRequest . pubkey ,
27- } ;
2817
2918 const result = await globalThis . systemContext . litClient . mintWithAuth ( {
3019 account : globalThis . systemContext . account ,
31- authData : userAuthData ,
32- scopes : validatedRequest . scopes ,
20+ authData : {
21+ authMethodId : jobData . requestBody . authMethodId ,
22+ authMethodType : jobData . requestBody . authMethodType ,
23+ publicKey : jobData . requestBody . pubkey ,
24+ } ,
25+ scopes : jobData . requestBody . scopes ,
3326 } ) ;
3427
3528 console . log (
You can’t perform that action at this time.
0 commit comments