chore: update supabase gotrue URL

This commit is contained in:
Marukome0743 2025-04-08 13:47:56 +09:00
parent 2c1c820e68
commit 2788d062e5
No known key found for this signature in database
GPG key ID: 4DDD27093447CD02
5 changed files with 5 additions and 5 deletions

View file

@ -75,7 +75,7 @@ services:
retries: 12
environment:
# There are a lot of options to configure GoTrue. You can reference the example config:
# https://github.com/supabase/gotrue/blob/master/example.env
# https://github.com/supabase/auth/blob/master/example.env
- GOTRUE_ADMIN_EMAIL=${GOTRUE_ADMIN_EMAIL}
- GOTRUE_ADMIN_PASSWORD=${GOTRUE_ADMIN_PASSWORD}
- GOTRUE_DISABLE_SIGNUP=${GOTRUE_DISABLE_SIGNUP:-false}

View file

@ -47,7 +47,7 @@ services:
depends_on:
- postgres
environment:
# Gotrue config: https://github.com/supabase/gotrue/blob/master/example.env
# Gotrue config: https://github.com/supabase/auth/blob/master/example.env
- GOTRUE_ADMIN_EMAIL=${GOTRUE_ADMIN_EMAIL}
- GOTRUE_ADMIN_PASSWORD=${GOTRUE_ADMIN_PASSWORD}
- GOTRUE_DISABLE_SIGNUP=${GOTRUE_DISABLE_SIGNUP:-false}

View file

@ -62,7 +62,7 @@ services:
image: appflowyinc/gotrue:${GOTRUE_VERSION:-latest}
environment:
# There are a lot of options to configure GoTrue. You can reference the example config:
# https://github.com/supabase/gotrue/blob/master/example.env
# https://github.com/supabase/auth/blob/master/example.env
- GOTRUE_ADMIN_EMAIL=${GOTRUE_ADMIN_EMAIL}
- GOTRUE_ADMIN_PASSWORD=${GOTRUE_ADMIN_PASSWORD}
- GOTRUE_DISABLE_SIGNUP=${GOTRUE_DISABLE_SIGNUP:-false}

View file

@ -81,7 +81,7 @@ impl Display for GoTrueErrorSerde {
}
/// The gotrue error definition:
/// https://github.com/supabase/gotrue/blob/cc07b4aa2ace75d9c8e46ae5107dbabadf944e87/internal/models/errors.go#L65
/// https://github.com/supabase/auth/blob/cc07b4aa2ace75d9c8e46ae5107dbabadf944e87/internal/models/errors.go#L65
/// Used to deserialize the response from the gotrue server
#[derive(Serialize, Deserialize, Debug, Error)]
pub struct GotrueClientError {

View file

@ -75,7 +75,7 @@ impl Client {
#[tracing::instrument(skip_all, err)]
pub async fn token(&self, grant: &Grant) -> Result<GotrueTokenResponse, GoTrueError> {
// https://github.com/supabase/gotrue/blob/master/internal/api/verify.go#L219
// https://github.com/supabase/auth/blob/master/internal/api/verify.go#L219
let url = format!("{}/token?grant_type={}", self.base_url, grant.type_as_str());
let payload = grant.json_value();
let resp = self.client.post(url).json(&payload).send().await?;