Skip to content

Commit

Permalink
SDK-2246:pr updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmet-yoti committed Oct 12, 2023
1 parent 1c74f09 commit aad8d97
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
2 changes: 0 additions & 2 deletions _examples/idv/handlers.session.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"net/http"
"os"

"github.com/getyoti/yoti-go-sdk/v3"
"github.com/getyoti/yoti-go-sdk/v3/docscan"
"github.com/getyoti/yoti-go-sdk/v3/docscan/session/create"
"github.com/gin-gonic/gin"
Expand All @@ -22,7 +21,6 @@ var (
key []byte
client *docscan.Client
createSessionResult *create.SessionResult
didClient *yoti.DigitalIdentityClient
)

func showIndexPage(c *gin.Context) {
Expand Down
4 changes: 2 additions & 2 deletions digitalidentity/share_session_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ func (builder *ShareSessionRequestBuilder) WithExtension(extension interface{})
}

// WithNotification sets the callback URL
func (builder *ShareSessionRequestBuilder) WithNotification(notification ShareSessionNotification) *ShareSessionRequestBuilder {
builder.shareSessionRequest.shareSessionNotification = &notification
func (builder *ShareSessionRequestBuilder) WithNotification(notification *ShareSessionNotification) *ShareSessionRequestBuilder {
builder.shareSessionRequest.shareSessionNotification = notification
return builder
}

Expand Down
7 changes: 0 additions & 7 deletions requests/signed_message.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,6 @@ func JSONHeaders() map[string][]string {
func AuthHeader(clientSdkId string, key *rsa.PublicKey) map[string][]string {
return map[string][]string{
"X-Yoti-Auth-Id": {clientSdkId},
/*"X-Yoti-Auth-Key": {
base64.StdEncoding.EncodeToString(
func(a []byte, _ error) []byte {
return a
}(x509.MarshalPKIXPublicKey(key)),
),
},*/
}
}

Expand Down

0 comments on commit aad8d97

Please sign in to comment.