Skip to content

Commit

Permalink
[3.x] feat: allow to customise the signature_method (#78)
Browse files Browse the repository at this point in the history
* feat: allow to customise the signature_method

* Update VonageChannelServiceProvider.php

---------

Co-authored-by: Taylor Otwell <[email protected]>
  • Loading branch information
ankurk91 and taylorotwell authored May 1, 2023
1 parent c5d8f3a commit 9423dbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Vonage.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function client()
$signatureCredentials = null;

if ($signatureSecret = $this->config['signature_secret'] ?? null) {
$signatureCredentials = new SignatureSecret($this->config['api_key'], $signatureSecret);
$signatureCredentials = new SignatureSecret($this->config['api_key'], $signatureSecret, $this->config['signature_method'] ?? 'md5hash');
}

if ($basicCredentials && $signatureCredentials) {
Expand Down

0 comments on commit 9423dbd

Please sign in to comment.