Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VerifyWebhook doesnt work #290

Open
wesleycremonini opened this issue Oct 17, 2024 · 0 comments
Open

VerifyWebhook doesnt work #290

wesleycremonini opened this issue Oct 17, 2024 · 0 comments

Comments

@wesleycremonini
Copy link

Version: github.com/GetStream/stream-chat-go/v7 v7.0.0

func WebhookIsValid(r *http.Request) bool {
	body, _ := io.ReadAll(r.Body)
	signature := r.Header.Get("X-Signature")
	return globalClient.VerifyWebhook(body, []byte(signature))
}

This always returns false, am I doing something wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant