https://supertokens.com/
Join Discord
Hey! , i am trying to add the forgot-password functionality to my app , i was able to get it to send...
d

devdev4117

about 2 years ago
Hey! , i am trying to add the forgot-password functionality to my app , i was able to get it to send the mail but currently it sends it using the supertokens email, i want to configure it to use my mail I have added the below lines to supertokens init
emailDelivery: {
                    override: (originalImplementation) => {
                        return {
                            ...originalImplementation,
                            service: new EmailVerificationSMTPService({
                                smtpSettings,
                            }),
                            sendEmail: async function (input) {
                                if (input.type === 'PASSWORD_RESET') {
                                    // You can change the path, domain of the reset password link,
                                    // or even deep link it to your mobile app
...
d
r
  • 2
  • 29
  • 39
Hi, I am stuggling to find how to refresh the session using the header transfer method , by manual...
l

luiss

over 1 year ago
Hi, I am stuggling to find how to refresh the session using the header transfer method , by manually doing XHR Requests to the /auth/ endpoints. It seems the that refreshed token is sent using cookies instead of response headers. Currently I am trying with the following POST: What am I doing wrong?
api.post('/auth/session/refresh', 
           null,
           {
             headers: {
               Rid: "session",
               Authorization: "Bearer "+ refreshToken,
               "St-Auth-mode": "header", 
            }
          });
l
r
  • 2
  • 3
  • 38
Getting this error on Google login success. Though login is happening fine. ```Error: No access, re...
h

hitesh

almost 2 years ago
Getting this error on Google login success. Though login is happening fine.
Error: No access, refresh token, API key or refresh handler callback is set.
    at OAuth2Client.getRequestMetadataAsync (/Users/hitesh/dev/jwt_supertokens_hasura/node_modules/google-auth-library/build/src/auth/oauth2client.js:272:19)
    at OAuth2Client.requestAsync (/Users/hitesh/dev/jwt_supertokens_hasura/node_modules/google-auth-library/build/src/auth/oauth2client.js:371:34)
    at OAuth2Client.request (/Users/hitesh/dev/jwt_supertokens_hasura/node_modules/google-auth-library/build/src/auth/oauth2client.js:365:25)
    at createAPIRequestAsync (/Users/hitesh/dev/jwt_supertokens_hasura/node_modules/googleapis-common/build/src/apirequest.js:273:31)
    at createAPIRequest (/Users/hitesh/dev/jwt_supertokens_hasura/node_modules/googleapis-common/build/src/apirequest.js:49:9)
    at Resource$Userinfo.get (/Users/hitesh/dev/jwt_supertokens_hasura/node_modules/googleapis/build/src/apis/oauth2/v2.js:104:58)
    at Object.<anonymous> (/Users/hitesh/dev/jwt_supertokens_hasura/dist/supertokens_config.js:117:57)
    at Generator.next (<anonymous>)
    at fulfilled (/Users/hitesh/dev/jwt_supertokens_hasura/dist/supertokens_config.js:5:58)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Any suggestions?
h
r
  • 2
  • 9
  • 38
Any idea why setting the `api_domain` on my python backend to be an AWS Public IPv4 DNS address is t...
a

andrewbyrley

almost 2 years ago
Any idea why setting the
api_domain
on my python backend to be an AWS Public IPv4 DNS address is throwing this error?
Traceback (most recent call last):
  ...
  File "/home/andrew/PycharmProjects/reminderFastApi/venv/lib/python3.10/site-packages/supertokens_python/__init__.py", line 35, in init
    return Supertokens.init(
  File "/home/andrew/PycharmProjects/reminderFastApi/venv/lib/python3.10/site-packages/supertokens_python/supertokens.py", line 209, in init
    Supertokens.__instance = Supertokens(
  File "/home/andrew/PycharmProjects/reminderFastApi/venv/lib/python3.10/site-packages/supertokens_python/supertokens.py", line 157, in __init__
    self.app_info = AppInfo(
  File "/home/andrew/PycharmProjects/reminderFastApi/venv/lib/python3.10/site-packages/supertokens_python/supertokens.py", line 108, in __init__
    self.top_level_api_domain = get_top_level_domain_for_same_site_resolution(
  File "/home/andrew/PycharmProjects/reminderFastApi/venv/lib/python3.10/site-packages/supertokens_python/utils.py", line 279, in get_top_level_domain_for_same_site_resolution
    raise Exception(
Exception: Please make sure that the apiDomain and websiteDomain have correct values
a
r
k
  • 3
  • 9
  • 37
Hi! I am using Angular, and I replaced the HttpClient with fetch. My understanding is that Session.i...
d

dleangen

almost 3 years ago
Hi! I am using Angular, and I replaced the HttpClient with fetch. My understanding is that Session.init() is supposed to add interceptors to fetch to send session data along with each http request. Is my understanding correct? If it is, then how can I debug to figure out why session data is not being sent when I make a fetch request?
d
r
  • 2
  • 39
  • 37
invalid_grant with override on thirdparty
m

Marques

about 3 years ago
invalid_grant with override on thirdparty
m
r
+2
  • 4
  • 159
  • 37
Hi, i try to use supertokens on nuxtjs with nuxt-auth. i have write a custom scheme extends cookies ...
j

joelc611

about 3 years ago
Hi, i try to use supertokens on nuxtjs with nuxt-auth. i have write a custom scheme extends cookies scheme. The question is, can i use "sIRTFrontend" to determine whether the session is alive on the middleware checking?
j
r
  • 2
  • 23
  • 37
<@498057949541826571> Hey guys, Do you have an SDK for Remix?
j

joe80813

over 1 year ago
@rp_st Hey guys, Do you have an SDK for Remix?
j
r
d
  • 3
  • 181
  • 36
Hey <@498057949541826571> I want to get a list of all the users I have, but I want to do it from a ...
p

pimpler

over 1 year ago
Hey @rp_st I want to get a list of all the users I have, but I want to do it from a script, not a server. I saw that there is a function in the node-supertoken lib but Im not able to use it (because I cannot use init()). I saw that there might be an endpoint in the CDI, but when I try to use GET im getting 404 not found in response. What is the right solution here? Thank you
p
r
  • 2
  • 8
  • 36
hi there, I have an issue with my tenant...not sure what might cause it: Error: SuperTokens core thr...
c

cruaier

over 1 year ago
hi there, I have an issue with my tenant...not sure what might cause it: Error: SuperTokens core threw an error for a POST request to path: '/692da2df-dca9-48aa-8556-9be2a082fa7f/recipe/user/password/reset/token/consume' with status code: 400 and message: AppId or tenantId not found => Tenant with the following connectionURIDomain, appId and tenantId combination not found: the error only happens when trying to reset a users password, all other auth functions seem to work
c
r
  • 2
  • 33
  • 36
Previous131415Next

SuperTokens.com

SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).

Powered by