Skip to content
This repository has been archived by the owner on Sep 25, 2024. It is now read-only.

Commit

Permalink
Update kwoodhouse93/gotrue-go to supabase-community/gotrue-go, test a…
Browse files Browse the repository at this point in the history
…gainst v2.32.0

Looks like no further changes needed to the client for GoTrue releases v2.30.2 -> v2.32.0
  • Loading branch information
kwoodhouse93 committed Nov 17, 2022
1 parent 98e8776 commit d700054
Show file tree
Hide file tree
Showing 42 changed files with 49 additions and 49 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# gotrue-go

![example branch parameter](https://github.com/kwoodhouse93/gotrue-go/actions/workflows/test.yaml/badge.svg?branch=main)
[![codecov](https://codecov.io/gh/kwoodhouse93/gotrue-go/branch/main/graph/badge.svg?token=JQQJKETMRX)](https://codecov.io/gh/kwoodhouse93/gotrue-go)
![GitHub](https://img.shields.io/github/license/kwoodhouse93/gotrue-go)
[![Go Reference](https://pkg.go.dev/badge/github.com/kwoodhouse93/gotrue-go.svg)](https://pkg.go.dev/github.com/kwoodhouse93/gotrue-go)
![example branch parameter](https://github.com/supabase-community/gotrue-go/actions/workflows/test.yaml/badge.svg?branch=main)
[![codecov](https://codecov.io/gh/supabase-community/gotrue-go/branch/main/graph/badge.svg?token=JQQJKETMRX)](https://codecov.io/gh/supabase-community/gotrue-go)
![GitHub](https://img.shields.io/github/license/supabase-community/gotrue-go)
[![Go Reference](https://pkg.go.dev/badge/github.com/supabase-community/gotrue-go.svg)](https://pkg.go.dev/github.com/supabase-community/gotrue-go)


A Golang client library for the [Supabase GoTrue](https://github.com/supabase/gotrue) API.
Expand All @@ -25,14 +25,14 @@ The endpoints for SSO SAML are not tested and `POST /sso/saml/acs` does not prov
### Install

```sh
go get github.com/kwoodhouse93/gotrue-go
go get github.com/supabase-community/gotrue-go
```

### Usage
```go
package main

import "github.com/kwoodhouse93/gotrue-go"
import "github.com/supabase-community/gotrue-go"

const (
projectReference = "<your_supabase_project_reference>"
Expand Down
2 changes: 1 addition & 1 deletion api.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package gotrue
import (
"net/http"

"github.com/kwoodhouse93/gotrue-go/types"
"github.com/supabase-community/gotrue-go/types"
)

// Create a new client using gotrue.New, then you can call the methods below.
Expand Down
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"errors"
"net/http"

"github.com/kwoodhouse93/gotrue-go/endpoints"
"github.com/supabase-community/gotrue-go/endpoints"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion endpoints/adminaudit.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

"github.com/tomnomnom/linkheader"

"github.com/kwoodhouse93/gotrue-go/types"
"github.com/supabase-community/gotrue-go/types"
)

const adminAuditPath = "/admin/audit"
Expand Down
2 changes: 1 addition & 1 deletion endpoints/admingeneratelink.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"io/ioutil"
"net/http"

"github.com/kwoodhouse93/gotrue-go/types"
"github.com/supabase-community/gotrue-go/types"
)

const adminGenerateLinkPath = "/admin/generate_link"
Expand Down
2 changes: 1 addition & 1 deletion endpoints/adminssoproviders.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"io/ioutil"
"net/http"

"github.com/kwoodhouse93/gotrue-go/types"
"github.com/supabase-community/gotrue-go/types"
)

const adminSSOPath = "/admin/sso/providers"
Expand Down
2 changes: 1 addition & 1 deletion endpoints/adminusers.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"io/ioutil"
"net/http"

"github.com/kwoodhouse93/gotrue-go/types"
"github.com/supabase-community/gotrue-go/types"
)

const adminUsersPath = "/admin/users"
Expand Down
2 changes: 1 addition & 1 deletion endpoints/adminusersfactors.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"io/ioutil"
"net/http"

"github.com/kwoodhouse93/gotrue-go/types"
"github.com/supabase-community/gotrue-go/types"
)

// GET /admin/users/{user_id}/factors
Expand Down
2 changes: 1 addition & 1 deletion endpoints/authorize.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"io/ioutil"
"net/http"

"github.com/kwoodhouse93/gotrue-go/types"
"github.com/supabase-community/gotrue-go/types"
)

const authorizePath = "/authorize"
Expand Down
2 changes: 1 addition & 1 deletion endpoints/factors.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

"github.com/google/uuid"

"github.com/kwoodhouse93/gotrue-go/types"
"github.com/supabase-community/gotrue-go/types"
)

const factorsPath = "/factors"
Expand Down
2 changes: 1 addition & 1 deletion endpoints/health.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"io/ioutil"
"net/http"

"github.com/kwoodhouse93/gotrue-go/types"
"github.com/supabase-community/gotrue-go/types"
)

var healthPath = "/health"
Expand Down
2 changes: 1 addition & 1 deletion endpoints/invite.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"io/ioutil"
"net/http"

"github.com/kwoodhouse93/gotrue-go/types"
"github.com/supabase-community/gotrue-go/types"
)

const invitePath = "/invite"
Expand Down
2 changes: 1 addition & 1 deletion endpoints/magiclink.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"io/ioutil"
"net/http"

"github.com/kwoodhouse93/gotrue-go/types"
"github.com/supabase-community/gotrue-go/types"
)

const magiclinkPath = "/magiclink"
Expand Down
2 changes: 1 addition & 1 deletion endpoints/otp.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"io/ioutil"
"net/http"

"github.com/kwoodhouse93/gotrue-go/types"
"github.com/supabase-community/gotrue-go/types"
)

const otpPath = "/otp"
Expand Down
2 changes: 1 addition & 1 deletion endpoints/recover.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"io/ioutil"
"net/http"

"github.com/kwoodhouse93/gotrue-go/types"
"github.com/supabase-community/gotrue-go/types"
)

const recoverPath = "/recover"
Expand Down
2 changes: 1 addition & 1 deletion endpoints/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"io/ioutil"
"net/http"

"github.com/kwoodhouse93/gotrue-go/types"
"github.com/supabase-community/gotrue-go/types"
)

var settingsPath = "/settings"
Expand Down
2 changes: 1 addition & 1 deletion endpoints/signup.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

"github.com/google/uuid"

"github.com/kwoodhouse93/gotrue-go/types"
"github.com/supabase-community/gotrue-go/types"
)

const signupPath = "/signup"
Expand Down
2 changes: 1 addition & 1 deletion endpoints/sso.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"io/ioutil"
"net/http"

"github.com/kwoodhouse93/gotrue-go/types"
"github.com/supabase-community/gotrue-go/types"
)

const ssoPath = "/sso"
Expand Down
2 changes: 1 addition & 1 deletion endpoints/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"io/ioutil"
"net/http"

"github.com/kwoodhouse93/gotrue-go/types"
"github.com/supabase-community/gotrue-go/types"
)

const tokenPath = "/token"
Expand Down
2 changes: 1 addition & 1 deletion endpoints/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"io/ioutil"
"net/http"

"github.com/kwoodhouse93/gotrue-go/types"
"github.com/supabase-community/gotrue-go/types"
)

var userPath = "/user"
Expand Down
2 changes: 1 addition & 1 deletion endpoints/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"net/url"
"strconv"

"github.com/kwoodhouse93/gotrue-go/types"
"github.com/supabase-community/gotrue-go/types"
)

const verifyPath = "/verify"
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/kwoodhouse93/gotrue-go
module github.com/supabase-community/gotrue-go

go 1.18

Expand Down
2 changes: 1 addition & 1 deletion integration_test/adminaudit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/kwoodhouse93/gotrue-go/types"
"github.com/supabase-community/gotrue-go/types"
)

// This test relies on running with an empty audit log.
Expand Down
2 changes: 1 addition & 1 deletion integration_test/admingeneratelink_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/kwoodhouse93/gotrue-go/types"
"github.com/supabase-community/gotrue-go/types"
)

func TestAdminGenerateLink(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion integration_test/adminusers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/kwoodhouse93/gotrue-go/types"
"github.com/supabase-community/gotrue-go/types"
)

func TestAdminCreateUser(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion integration_test/adminusersfactors_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/kwoodhouse93/gotrue-go/types"
"github.com/supabase-community/gotrue-go/types"
)

func TestAdminListUserFactors(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion integration_test/authorize_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/kwoodhouse93/gotrue-go/types"
"github.com/supabase-community/gotrue-go/types"
)

func TestAuthorize(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion integration_test/factors_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/kwoodhouse93/gotrue-go/types"
"github.com/supabase-community/gotrue-go/types"
)

func TestFactors(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion integration_test/health_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/kwoodhouse93/gotrue-go"
"github.com/supabase-community/gotrue-go"
)

func TestHealth(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion integration_test/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/kwoodhouse93/gotrue-go"
"github.com/supabase-community/gotrue-go"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion integration_test/invite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/kwoodhouse93/gotrue-go/types"
"github.com/supabase-community/gotrue-go/types"
)

func TestInvite(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion integration_test/logout_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/kwoodhouse93/gotrue-go/types"
"github.com/supabase-community/gotrue-go/types"
)

func TestLogout(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion integration_test/magiclink_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/stretchr/testify/assert"

"github.com/kwoodhouse93/gotrue-go/types"
"github.com/supabase-community/gotrue-go/types"
)

func TestMagiclink(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion integration_test/otp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/stretchr/testify/assert"

"github.com/kwoodhouse93/gotrue-go/types"
"github.com/supabase-community/gotrue-go/types"
)

func TestOTP(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion integration_test/reauthenticate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/kwoodhouse93/gotrue-go/types"
"github.com/supabase-community/gotrue-go/types"
)

func TestReauthenticate(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion integration_test/recover_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/stretchr/testify/assert"

"github.com/kwoodhouse93/gotrue-go/types"
"github.com/supabase-community/gotrue-go/types"
)

func TestRecover(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions integration_test/setup/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ services:
container_name: gotrue
depends_on:
- postgres
image: supabase/gotrue:v2.30.2
image: supabase/gotrue:v2.32.0
restart: on-failure
ports:
- '9999:9999'
Expand All @@ -30,7 +30,7 @@ services:
container_name: gotrue_autoconfirm
depends_on:
- postgres
image: supabase/gotrue:v2.25.1
image: supabase/gotrue:v2.32.0
restart: on-failure
ports:
- '9998:9998'
Expand Down Expand Up @@ -62,7 +62,7 @@ services:
container_name: gotrue_signup_disabled
depends_on:
- postgres
image: supabase/gotrue:v2.25.1
image: supabase/gotrue:v2.32.0
restart: on-failure
ports:
- '9997:9997'
Expand Down
2 changes: 1 addition & 1 deletion integration_test/signup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/kwoodhouse93/gotrue-go/types"
"github.com/supabase-community/gotrue-go/types"
)

func TestSignup(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion integration_test/token_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/kwoodhouse93/gotrue-go/types"
"github.com/supabase-community/gotrue-go/types"
)

func TestToken(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion integration_test/user_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/kwoodhouse93/gotrue-go/types"
"github.com/supabase-community/gotrue-go/types"
)

func TestUser(t *testing.T) {
Expand Down
Loading

0 comments on commit d700054

Please sign in to comment.