supabase-community / supabase-go

A Go Client library for Supabase
MIT License
125 stars 8 forks source link

Non existing method #12

Open denisrudov opened 1 month ago

denisrudov commented 1 month ago

Bug report

Non existing method

Method doesn't exist. connection to supabase is impossible

image

in version v0.0.1 all is fine

To Reproduce

install version v0.02 and try to connect

Screenshots

image
ZanzyTHEbar commented 1 month ago

Yup, same here. Seems that the proper method is TokenAuth not SetAuthToken

ZanzyTHEbar commented 1 month ago

Strangely enough, when i use the proper method (as found in the postgres-go client.go file) i get: image Which is a bit confusing ...

ZanzyTHEbar commented 1 month ago

I "fixed" the issue my manually cloning supabase-community/postgrest-go into my go package cache.

I have opened an issue in the postgres-go repo: https://github.com/supabase-community/postgrest-go/issues/50

muratmirgun commented 1 month ago

Hello, I will check it. I will write updates here!

tranhoangvuit commented 1 month ago

Hi @denisrudov, @ZanzyTHEbar sorry for the missing information. We separated TokenAuth into SetApiKey and SetAuthToken for better readability in the new postgers-go tag v0.0.11 Can you use latest version(v0.0.4) with new function?