validate web app hash
crashiura crashiura@gmail.com
Sun, 03 Jul 2022 02:43:22 +0300
1 files changed,
0 insertions(+),
12 deletions(-)
jump to
M
helpers_test.go
→
helpers_test.go
@@ -248,18 +248,6 @@ t.Fail()
} }) - t.Run("error bad init data", func(t *testing.T) { - token := "5473903189:AAFnHnISQMP5UQQ5MEaoEWvxeiwNgz2CN2U" - initData := "asdfasdfasdfasdfasdf" - result, err := ValidateWebAppData(token, initData) - if err == nil { - t.Fail() - } - if result { - t.Fail() - } - }) - t.Run("error", func(t *testing.T) { token := "5473903189:AAFnHnISQMP5UQQ5MEaoEWvxeiwNgz2CN2U" initData := "asdfasdfasdfasdfasdf"