@@ -106,6 +106,8 @@ export default function (server: Server, ctx: AppContext) {
106106 // @NOTE Until this code and the OAuthStore's `createAccount` are
107107 // refactored together, any change made here must be reflected over there.
108108
109+ console . log ( ctx . entrywayAgent , 'entrywayAgent in createAccount' )
110+
109111 const requester = auth . credentials ?. did ?? null
110112 const {
111113 did,
@@ -120,6 +122,8 @@ export default function (server: Server, ctx: AppContext) {
120122 ? await validateInputsForEntrywayPds ( ctx , input . body )
121123 : await validateInputsForLocalPds ( ctx , input . body , requester )
122124
125+ console . log ( 'request in createAccount' , requester )
126+
123127 let didDoc : DidDocument | undefined
124128 let creds : { accessJwt : string ; refreshJwt : string }
125129 await ctx . actorStore . create ( did , signingKey )
@@ -131,8 +135,6 @@ export default function (server: Server, ctx: AppContext) {
131135 // Generate a real did with Prism
132136 if ( plcOp ) {
133137 try {
134- await ctx . plcClient . sendOperation ( did , plcOp )
135- console . log ( 'herer3' )
136138 // Extract rotation keys matching the ones used in formatDidAndPlcOp
137139 const rotationKeys = plcOp . rotationKeys || [
138140 ctx . plcRotationKey . did ( ) ,
@@ -159,12 +161,9 @@ export default function (server: Server, ctx: AppContext) {
159161 console . log ( 'lets wait for 15 seconds' )
160162 await new Promise ( ( resolve ) => setTimeout ( resolve , 15000 ) )
161163 console . log ( 'waited 15 seconds' )
162- console . log ( did )
163164
164165 didDoc = await safeResolveDidDoc ( ctx , did , true )
165166
166- console . log ( didDoc )
167-
168167 creds = await ctx . accountManager . createAccountAndSession ( {
169168 did,
170169 handle,
@@ -176,6 +175,8 @@ export default function (server: Server, ctx: AppContext) {
176175 deactivated,
177176 } )
178177
178+ console . log ( 'creds' , creds )
179+
179180 if ( ! deactivated ) {
180181 await ctx . sequencer . sequenceIdentityEvt ( did , handle )
181182 await ctx . sequencer . sequenceAccountEvt ( did , AccountStatus . Active )
0 commit comments