Skip to content

Commit 0fb896e

Browse files
authored
Fix SendIntent error (#82)
POST https://dev-waas.sequence.app/rpc/WaasAuthenticator/SendIntent { "error": "WebrpcEndpoint", "code": 0, "msg": "endpoint error", "cause": "initiating auth with WaaS API: {%!m(string=Unauthorized) %!m(int=1000) %!m(string=Unauthorized access) %!m(string=Unauthorized 1000: Unauthorized access: method not allowed for session type) %!m(int=401) %!m(*errors.errorString=\u0026{Unauthorized 1000: Unauthorized access: method not allowed for session type})}", "status": 400 }
1 parent ad2d20c commit 0fb896e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rpc/sessions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ func (s *RPC) initiateAuth(
264264

265265
_, err = s.Wallets.InitiateAuth(waasapi.Context(ctx), waasapi.ConvertToAPIIntent(intent.ToIntent()), answer, challenge)
266266
if err != nil {
267-
return fmt.Errorf("initiating auth with WaaS API: %m", err)
267+
return fmt.Errorf("initiating auth with WaaS API: %w", err)
268268
}
269269

270270
encryptedKey, algorithm, ciphertext, err := crypto.EncryptData(ctx, att, tnt.KMSKeys[0], verifCtx)

0 commit comments

Comments
 (0)