Skip to content

Commit

Permalink
Fix SendIntent error (#82)
Browse files Browse the repository at this point in the history
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
}
  • Loading branch information
VojtechVitek authored Nov 11, 2024
1 parent ad2d20c commit 0fb896e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpc/sessions.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ func (s *RPC) initiateAuth(

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

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

0 comments on commit 0fb896e

Please sign in to comment.