You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
./main.go:91:38: cannot use cookieStore (type abclientstate.CookieStorer) as type "github.com/drshrey/scobophile/scobophile-go-api/vendor/github.com/volatiletech/authboss".ClientStateReadWriter in assignment:
abclientstate.CookieStorer does not implement "github.com/drshrey/scobophile/scobophile-go-api/vendor/github.com/volatiletech/authboss".ClientStateReadWriter (wrong type for ReadState method)
have ReadState(*http.Request) ("github.com/volatiletech/authboss".ClientState, error)
want ReadState(*http.Request) ("github.com/drshrey/scobophile/scobophile-go-api/vendor/github.com/volatiletech/authboss".ClientState, error)
./main.go:92:39: cannot use sessionStore (type abclientstate.SessionStorer) as type "github.com/drshrey/scobophile/scobophile-go-api/vendor/github.com/volatiletech/authboss".ClientStateReadWriter in assignment:
abclientstate.SessionStorer does not implement "github.com/drshrey/scobophile/scobophile-go-api/vendor/github.com/volatiletech/authboss".ClientStateReadWriter (wrong type for ReadState method)
have ReadState(*http.Request) ("github.com/volatiletech/authboss".ClientState, error)
want ReadState(*http.Request) ("github.com/drshrey/scobophile/scobophile-go-api/vendor/github.com/volatiletech/authboss".ClientState, error)
Versions of both packages:
[[constraint]]
name = "github.com/volatiletech/authboss"
version = "2.3.0"
[[constraint]]
branch = "master"
name = "github.com/volatiletech/authboss-clientstate"
Any reason why the types don't match? I checked out the definitions and they do seem to implement the ClientStateReadWriter interface, so help here would be much appreciated!
The text was updated successfully, but these errors were encountered:
Nevermind, I was able to fix it by doing dep ensure -add github.com/volatiletech/authboss-clientstate. Before, it was including the the clientstate lib from my /go/src/... path. Not sure why a go get -u on the package would be different from dep ensure, but that seems to have fixed it. Closing this!
Hey there, my code is failing when I use the pattern provided in https://github.com/volatiletech/authboss-sample/blob/master/blog.go#L66. Here's what my code looks like:
This is the error:
Versions of both packages:
Any reason why the types don't match? I checked out the definitions and they do seem to implement the
ClientStateReadWriter
interface, so help here would be much appreciated!The text was updated successfully, but these errors were encountered: