rp
09/19/2022, 5:23 PMLuxaaa
09/19/2022, 5:55 PMrezaamya
09/19/2022, 7:34 PMAbhishek Sachdeva
09/20/2022, 2:05 PMthird_party_user_id
is the same but will create two sessions
. This might lead to some issues in the future as we will be using user_id for lots of other stuff.
1. Is there any way to consider them as separate users?
2. Should we use separate supertokens instance (cloud or local) for each customer?
I guess, you will have something internally to manage multiple clients on the supertokens cloud.nickm91
09/20/2022, 2:28 PMappInfo: {
appName: 'myapp',
apiDomain: 'http://api:3000',
websiteDomain: 'http://localhost:4200',
apiBasePath: '/v1/auth',
websiteBasePath: '/auth'
},
Exception:
{
err: Error: Please make sure that the apiDomain and websiteDomain have correct values
...
}
ITEnthusiasm
09/20/2022, 3:39 PMlocalhost
? (That is, only the local web app can make calls to it and no one else.)
I know we have the API keys. But theoretically, enforcing that only localhost
is allowed would add additional safety, right? 🤔adyus
09/20/2022, 5:23 PMresponse = await api_implementation.sign_up_post(
File \"/var/task/app/users/utils.py\", line 93, in sign_up_post
response = await original_sign_up_post(form_fields, api_options, user_context)
File \"/var/lang/lib/python3.9/site-packages/supertokens_python/recipe/emailpassword/api/implementation.py\", line 199, in sign_up_post
result = await api_options.recipe_implementation.sign_up(
File \"/var/lang/lib/python3.9/site-packages/supertokens_python/recipe/emailpassword/recipe_implementation.py\", line 123, in sign_up
response = await self.querier.send_post_request(
File \"/var/lang/lib/python3.9/site-packages/supertokens_python/querier.py\", line 167, in send_post_request
return await self.__send_request_helper(path, \"POST\", f, len(self.__hosts))
File \"/var/lang/lib/python3.9/site-packages/supertokens_python/querier.py\", line 246, in __send_request_helper
raise_general_exception(e)
File \"/var/lang/lib/python3.9/site-packages/supertokens_python/exceptions.py\", line 25, in raise_general_exception
raise GeneralError(msg) from None
supertokens_python.exceptions.GeneralError
Now, I've tried running the same FastAPI locally (sans Lambda), passing the same Supertokens instance and same API database in production (just the API running locally in uvicorn). I was able to successfully create a new user! Then, I was able to successfully sign in as that user via the frontend hitting the Lambda API 🤯 This tells me that the Lambda function does have access to the Supertokens deployment for signin functions, but mysteriously fails for signup.aV
09/20/2022, 5:39 PMVrl
09/20/2022, 7:44 PMChunkygoo
09/21/2022, 1:26 AMChunkygoo
09/21/2022, 2:22 AMrp
09/21/2022, 4:11 AMChunkygoo
09/21/2022, 5:57 AMIaS1506
09/21/2022, 10:46 AMhermit908
09/21/2022, 11:51 AMmuhajirdev
09/21/2022, 2:04 PMStopping SuperTokens...
2022-09-21T13:56:00.000 [info] What caused the crash: Driver org.postgresql.Driver claims to not accept jdbcUrl, jdbc:postgres://darisini-staging-db-1.internal:5432/supertokens?allowPublicKeyRetrieval=true
2022-09-21T13:56:01.000 [info] Starting clean up.
EdwinN1337
09/21/2022, 6:37 PMimport { signUp } from 'supertokens-web-js/recipe/emailpassword'
is that its sending along the cookies, that logsout initial users and switch to the register one 😉
anyway to avoid the authentication & sending cookies along?IaS1506
09/22/2022, 8:38 AMDiesel
09/22/2022, 9:58 AMsigninup
api with a panic error of interface conversion: interface {} is nil, not string
I've attached the logs to the message, they are supertokens logs mix with some of my app.
My guess is it could be my configuration is wrong but i dont see any problem with it.muhajirdev
09/22/2022, 2:51 PMmuhajirdev
09/22/2022, 2:51 PMmuhajirdev
09/22/2022, 2:51 PMdottemechy
09/22/2022, 6:46 PMChunkygoo
09/23/2022, 12:15 AMOsmar
09/23/2022, 12:48 AMrp
09/23/2022, 3:09 AMChunkygoo
09/23/2022, 3:22 AMmuhajirdev
09/23/2022, 4:00 AMauth
middleware
I am currently deploying supertokens, on fly.io . it works on my local machine. Broken on deployed
{
2022-09-23T04:01:03Z app[1a7515c8] sin [info] framework: 'awsLambda',
2022-09-23T04:01:03Z app[1a7515c8] sin [info] isInServerlessEnv: true,
2022-09-23T04:01:03Z app[1a7515c8] sin [info] appInfo: {
2022-09-23T04:01:03Z app[1a7515c8] sin [info] apiDomain: 'https://staging.darisini.com',
2022-09-23T04:01:03Z app[1a7515c8] sin [info] websiteDomain: 'https://staging.darisini.com',
2022-09-23T04:01:03Z app[1a7515c8] sin [info] appName: 'Darisini',
2022-09-23T04:01:03Z app[1a7515c8] sin [info] apiGatewayPath: '/.redwood/functions',
2022-09-23T04:01:03Z app[1a7515c8] sin [info] websiteBasePath: '/auth',
2022-09-23T04:01:03Z app[1a7515c8] sin [info] apiBasePath: '/auth'
2022-09-23T04:01:03Z app[1a7515c8] sin [info] },
2022-09-23T04:01:03Z app[1a7515c8] sin [info] supertokens: {
2022-09-23T04:01:03Z app[1a7515c8] sin [info] connectionURI: 'https://darisini-supertokens-staging.fly.dev',
2022-09-23T04:01:03Z app[1a7515c8] sin [info] apiKey: 'Z8bhDE4EmCrmU2auutPbLw2wMiFyPJpoFqQ2ZK9VLMUdY7ZzvzaF6FTBG4FKC76A'
2022-09-23T04:01:03Z app[1a7515c8] sin [info] },
2022-09-23T04:01:03Z app[1a7515c8] sin [info] recipeList: [ [Function (anonymous)], [Function (anonymous)] ]
```rp
09/23/2022, 4:00 AMChunkygoo
09/23/2022, 5:29 AM