J0
10/18/2021, 3:27 AMDeleted User
10/19/2021, 5:45 AMThanks for registering, now check your email to complete the process.
instead of A user with this email address has already been registered
.
The error message in the test of gotrue-js
is A user with this email address has already been registered
.
Someone can explain was is the expected behavior in these cases? Thanks!Deleted User
10/19/2021, 5:49 AMGOTRUE_URL
is correct, I checked the docker-compose.yml
and the respective container seems to be configured correctly.Deleted User
10/19/2021, 5:50 AMyml
autoconfirm: # Signup enabled, autoconfirm on
image: supabase/gotrue:latest
ports:
- '9998:9998'
environment:
GOTRUE_JWT_SECRET: '37c304f8-51aa-419a-a1af-06154e63707a'
GOTRUE_JWT_EXP: 3600
GOTRUE_DB_DRIVER: postgres
DB_NAMESPACE: auth
GOTRUE_API_HOST: 0.0.0.0
PORT: 9998
GOTRUE_DISABLE_SIGNUP: 'false'
API_EXTERNAL_URL: http://localhost:9998
GOTRUE_SITE_URL: http://localhost:9998
GOTRUE_MAILER_AUTOCONFIRM: 'true'
GOTRUE_SMS_AUTOCONFIRM: 'true'
GOTRUE_LOG_LEVEL: DEBUG
GOTRUE_OPERATOR_TOKEN: super-secret-operator-token
DATABASE_URL: 'postgres://postgres:postgres@db:5432/postgres?sslmode=disable'
GOTRUE_EXTERNAL_PHONE_ENABLED: 'true'
GOTRUE_SMS_AUTOCONFIRM: 'true'
Deleted User
10/19/2021, 5:50 AMpython
GOTRUE_URL = "http://localhost:9998"
Deleted User
10/19/2021, 7:43 AMgotrue-js
Deleted User
10/19/2021, 8:00 AMDeleted User
10/19/2021, 8:30 AMsupabase/gotrue
of master
it is in accordance with the results of the tests, so I suppose that the tests have to be updated.Deleted User
10/19/2021, 8:53 AMDeleted User
10/19/2021, 9:20 AMsilentworks
10/19/2021, 12:12 PMDeleted User
10/19/2021, 6:04 PMgotrue
, postgrest
, etc. where information can be exchanged regardless of whether it is the server implementation or any of the clients.wiesson
10/22/2021, 7:37 PManand
10/23/2021, 4:33 AManand
10/23/2021, 5:01 AMBucket
class that is returned as response from methods like `get_bucket`/`list_buckets`. I think it would be a good idea to move the methods of the StorageFileAPI
class over to this Bucket
class, renaming the StorageClient.StorageFileAPI
method (which doesn't conform with PEP8 about method naming conventions) to something like StorageClient.from_
or StorageClient.bucket
, and have that method return an instance of Bucket
.
Currently, a user does something like
py
client.storage().StorageFileAPI("bucket-id").upload(...) # or any other file API method
My suggestion would allow something like:
py
bucket = client.storage().get_bucket("bucket-id")
bucket.upload(...)
and also
py
client.storage().from_("bucket-id").upload(...)
client.storage().bucket("bucket-id").upload(...)
anand
10/23/2021, 5:02 AMsupabase.Client
as well 🤔 (meaning methods would be callled like client.storage.from_("bucket").upload(...)
anand
10/23/2021, 5:04 AMfrom_
would also match with the from
method on the js library, and giving it an alias bucket
would be similar to how we alias table
for the table operationswiesson
10/23/2021, 7:12 AManand
10/23/2021, 2:50 PManand
10/23/2021, 4:56 PMJ0
10/23/2021, 4:57 PMJ0
10/23/2021, 5:57 PMStorageFileAPI
methods over to the Bucket
class. Naming it from_
in accordance with the js library would be a lot more intuitive and has been something we've wanted to do but never got around to doing it.
I think it's a great suggestion, feel free to file an issue or open a PRJ0
10/23/2021, 5:58 PManand
10/24/2021, 4:52 AMLiteral
was added to typing only in 3.8, so we have to import it from typing_extensions if the python version is below 3.8
Tests on 3.8 failing is a little odd, it seems like it is ignoring the __future__
import at the top of the file, so trying to type hint directly with dict
instead of typing.Dict
failswiesson
10/24/2021, 6:16 AMJ0
10/24/2021, 8:57 PMJ0
10/24/2021, 8:57 PManand
10/25/2021, 2:31 PManand
10/25/2021, 4:50 PMasyncio.get_event_loop
which fails because there's no event loop running)Tito
10/25/2021, 8:20 PM