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

auth-go should be used instead of the archived gotrue-go #24

Open
daic0r opened this issue Sep 26, 2024 · 0 comments
Open

auth-go should be used instead of the archived gotrue-go #24

daic0r opened this issue Sep 26, 2024 · 0 comments

Comments

@daic0r
Copy link

daic0r commented Sep 26, 2024

Chore

Describe the chore

Places in the code that reference the archived gotrue-go package should be changed to reference the successor repo auth-go instead.

Additional context

See the README in the gotrue-go repo:

Thu Sep 26 12:15:46 PM CEST 2024

4cecoder added a commit to 4cecoder/supabase-go that referenced this issue Oct 24, 2024
Related to supabase-community#24

Update references from `gotrue-go` to `auth-go` in the codebase.

* **client.go**
  - Update import paths to reference `auth-go` instead of `gotrue-go`.
  - Update the `Client` struct to use the `auth-go` client.
  - Update the `NewClient` function to initialize the `auth-go` client.
  - Update the `SignInWithEmailPassword`, `SignInWithPhonePassword`, `EnableTokenAutoRefresh`, `RefreshToken`, and `UpdateAuthSession` methods to use `auth-go` types and methods.

* **client_test.go**
  - Update import paths to reference `auth-go` instead of `gotrue-go`.
  - Update the `NewClient` function calls to initialize the `auth-go` client.
  - Update the test functions (`TestFrom`, `TestRpc`, `TestStorage`, and `TestFunctions`) to use `auth-go` types and methods.

* **go.mod**
  - Remove `gotrue-go` dependency.
  - Add `auth-go` dependency.

* **README.md**
  - Update the features section to mention `auth-go` instead of `gotrue-go`.

* **test/remote_client.go**
  - Update import paths to reference `auth-go` instead of `gotrue-go`.
  - Update the `NewClient` function call to initialize the `auth-go` client.
  - Update the `SignInWithEmailPassword` method call to use `auth-go` types and methods.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/supabase-community/supabase-go/issues/24?shareId=XXXX-XXXX-XXXX-XXXX).
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