ishank
12/03/2021, 4:30 PMrp
12/03/2021, 4:34 PMwebsiteDomain
to whatever the current sub domain is. This would restrict the session to work only within that sub domain.
- On the backend, you can set the websiteDomain
value to your top level domain, but you would have to define the GetResetPasswordURL
(https://pkg.go.dev/github.com/supertokens/supertokens-golang@v0.3.0/recipe/emailpassword/epmodels#TypeInputResetPasswordUsingTokenFeature) and GetEmailVerificationURL
(https://pkg.go.dev/github.com/supertokens/supertokens-golang@v0.3.0/recipe/emailpassword/epmodels#TypeInputEmailVerificationFeature) functions to return the right sub domain URL depending on who is trying to reset their password or verify their email (a regular user or a brand)rp
12/03/2021, 4:34 PMishank
12/03/2021, 5:07 PMrp
12/03/2021, 5:08 PMuser
12/03/2021, 5:09 PMrp
12/03/2021, 5:09 PMuser
12/03/2021, 5:09 PMZeferiniX
12/04/2021, 3:51 PMsupertokens/supertokens-postgresql:3.6
with docker-compose that depends_on
a db
service defined in the docker-compose.yml
now I normally run my containers in detached mode (docker-compose up -d
) so that whenever I turn off my pc, they just run again automatically in the background when I turn the pc back on
however, the supertokens container doesn't auto-start for some reason and I'm not quite sure how to debug this, I can reproduce it by just doing:
1. docker-compose up -d
on the project that uses supertokens
2. check running containers docker ps
3. restart docker desktop
4. check running containers again docker ps
5. everything else started again except for the supertokens image
any idea why that'd happen?rp
12/04/2021, 3:53 PMrp
12/04/2021, 3:53 PMZeferiniX
12/04/2021, 3:53 PMZeferiniX
12/04/2021, 3:57 PMrp
12/04/2021, 3:58 PMZeferiniX
12/04/2021, 3:58 PMrp
12/04/2021, 3:58 PMZeferiniX
12/04/2021, 4:13 PMrp
12/04/2021, 4:13 PMChakshu Jain
12/06/2021, 2:50 PM/signinup
endpoint of this(https://app.swaggerhub.com/apis/supertokens/FDI/1.10.3#/ThirdPartyEmailPassword%20Recipe). Can someone pls explain what is redirectURI, code, clientId and authCodeResponse
in the request body?rp
12/06/2021, 2:55 PMredirectURI
is the full URL (domain + path) that is registered on google as your app's callback URL.
- code
is the code query param that is sent from google to your app after google redirects the user to the callback URL
- clientId
and authCodeResponse
can be ignored since they are used for an OAuth flow for mobile apps.rp
12/06/2021, 2:57 PM{
redirectURI: "...",
code: "..", // sent by google as a query param
thirdPartyId: "google"
}
Chakshu Jain
12/06/2021, 2:58 PMSasha_Gr
12/08/2021, 2:38 PMconst res = await server.inject({
method: 'POST',
url: '/login',
payload: loginData,
});
or there is a way to do it with sessionManagement on each injection?rp
12/08/2021, 3:11 PMrp
12/08/2021, 3:12 PMrp
12/08/2021, 3:12 PMSasha_Gr
12/08/2021, 3:12 PMMike_
12/09/2021, 10:07 PMrp
12/09/2021, 10:41 PMfetch
/ axios
. The API spec is here: https://app.swaggerhub.com/apis/supertokens/FDI
> so I assume the supertokens-website SDK will communicate with the supertokens-node module on my backend automatically by hitting routes that are registered by the ST express middleware?
Yes. But since supertokens-website is for sessions only, it will only hit the session recipe's routes.
> Would be awesome to see a recipe on the site for supertokens-website vanilla implementations.
Coming soon!!user
12/12/2021, 4:55 PM