https://supertokens.com/ logo
Docs
Join the conversationJoin Discord
Channels
community
contributing
general
github-activity
info
introductions
new-releases
random
security
support-questions
welcome-0xdelusion
welcome-aj-ya
welcome-aleksandrc
welcome-alpinjs
welcome-amberlamps1
welcome-andrew-rodriguez
welcome-ankit-choudhary
welcome-anthony-stod-custodio
welcome-call-in
welcome-chwalbox
welcome-claybiokiller
welcome-co7e
welcome-cosmoecwsa
welcome-devdag
welcome-dinso
welcome-drebotelho
welcome-elio
welcome-ernest
welcome-foxbarrington
welcome-fromscratch
welcome-galto4ir
welcome-goetzum
welcome-hay-kot
welcome-himanshu-kukreja
welcome-hossambarakat
welcome-ichikawakazuto
welcome-jahir9991
welcome-jamesl
welcome-jerry123424
welcome-john-oliver
welcome-jonas-alexanderson
welcome-jxyz
welcome-kelvinwop
welcome-kraz
welcome-lancekey
welcome-leoo
welcome-lukeacollins
welcome-m-j-mon
welcome-malik-khoja
welcome-marco
welcome-mardadi
welcome-meshguy
welcome-metamorph
welcome-mike-tectu
welcome-mirzok
welcome-mozomig
welcome-naberyou66_
welcome-nacer
welcome-namratha
welcome-naveenkumar
welcome-nightlight
welcome-nischith
welcome-notankit
welcome-olawumi
welcome-pavan-kumar-reddy-n
welcome-pineappaul
welcome-poothebear
welcome-rick
welcome-samuel-qosenergy
welcome-samuelstroschein
welcome-shubhamgoel23
welcome-shubhamkaushal
welcome-sidebar
welcome-surajsli
welcome-suyash_
welcome-syntaxerror
welcome-tauno
welcome-tauno
welcome-tawnoz
welcome-teclali
welcome-tls
welcome-turbosepp
welcome-vikram_shadow
welcome-yann
Powered by Linen
general
  • n

    nkshah2

    02/25/2022, 5:37 AM
    That would make sense
  • n

    nkshah2

    02/25/2022, 5:37 AM
    express.json simply uses bodyparser.json, so that would be it
  • n

    nxteword

    02/26/2022, 5:21 AM
    Is it possible to have a different base URL for both SIgnup and Sign in while using
    supertokens-node
    ? For example, I'd like APIs to be:
    /users/login
    -- Sign in API
    /users
    -- Signup API
  • r

    rp

    02/26/2022, 5:22 AM
    You can’t change the default API. Path, but you can disable the default API and implement them by copying the source code from the node SDK In your own path
  • n

    nxteword

    02/26/2022, 5:22 AM
    Okay cool, thanks.
  • r

    rajivharlalka

    03/01/2022, 4:08 AM
    Hello,is the api base path completely reserved with Supertokens. I have set my api base path in supertokens config as
    /api
    and also want my custom api's also to start with
    /api
    . Is that Possible??
  • r

    rp

    03/01/2022, 4:09 AM
    Yes. That’s possible. Just create your custom APIs as usual, and as long as their path and method don’t collide with one of our APIs, it will work as expected
  • r

    rajivharlalka

    03/01/2022, 4:12 AM
    It isnt. I created my api as
    /api/v1/users
    which I dont believe collides. But am getting such an error
  • r

    rp

    03/01/2022, 4:14 AM
    Right. You had opened an issue about this. I’ll have a look at it today.
  • r

    rajivharlalka

    03/01/2022, 4:14 AM
    Not only this, If my api just starts with
    api
    as the first three characters , the same error is shown. For example: /apia ,/apib etc
  • r

    rajivharlalka

    03/01/2022, 4:15 AM
    Sure thanks
  • r

    rp

    03/01/2022, 4:15 AM
    This is really odd. Never happened before. So let me check
  • r

    rajivharlalka

    03/01/2022, 4:15 AM
    Sure ,no issues 😄
  • r

    rp

    03/01/2022, 4:16 AM
    Can you try with setting the apiBasePath to “/api/auth”
  • r

    rp

    03/01/2022, 4:16 AM
    And see if your custom API calls still fail like this
  • r

    rajivharlalka

    03/01/2022, 4:18 AM
    Just a sec
  • r

    rajivharlalka

    03/01/2022, 4:19 AM
    Now they are working fine
  • r

    rp

    03/01/2022, 4:19 AM
    Okay! Thanks for the info. I’ll debug this today
  • f

    fountainhead

    03/04/2022, 4:09 AM
    Hey guys .... just came across SuperTokens ... just wondering if this use-case makes sense I mainly work with no-code apps. I am thinking of this very simple flow: i) User-authenticated: No-code app checks with Supertokens is user is validated. If yes proceed. If no, move to step 2 ii) If user not authenticated, move user to the magic login page Does this make sense?
  • r

    rp

    03/04/2022, 4:11 AM
    Yea it does make sense. However, you would need to write code to integrate supertokens.
  • f

    fountainhead

    03/04/2022, 4:13 AM
    Thank you. Could you point me to the documentation section to the write the least amount of code implement this?
  • r

    rp

    03/04/2022, 4:14 AM
    Start by selecting the login method you want to add https://supertokens.com/docs/guides
  • r

    rp

    03/04/2022, 4:14 AM
    And then follow the quick setup guide for your stack
  • t

    trev

    03/04/2022, 9:21 PM
    Hey, I had a quick question, could someone let me know the reason for double hashing the refresh token? Or point me to documentation about it? I'm just curious what the actual advantage of it was. Thanks!
  • r

    rp

    03/04/2022, 9:25 PM
    hey @User you can see why here: https://github.com/supertokens/supertokens-core/issues/362
  • t

    trev

    03/04/2022, 9:32 PM
    Perfect, thank you !
  • a

    azzlack

    03/07/2022, 8:31 AM
    Anyone knows if its possible to use Supertokens with Azure AD? It seems it's possible to do it with ThirdParty login, but I am wondering if anyone has done it successfully before
  • r

    rp

    03/07/2022, 8:36 AM
    It should be possible via custom Third party provider login. Here is something that works with active directory (if that's what you are looking for): https://github.com/supertokens/supertokens-node/blob/master/lib/ts/recipe/thirdparty/providers/activeDirectory.ts the reason it's commented out is cause it doesn't support multi tenant AD integration, but would work fine with just a single tenant. Is this what you were looking for?
  • n

    NathanSkoot

    03/07/2022, 11:38 AM
    Morning Is there a reason that the MySql tables config adds a
    passwordless_users
    table (https://supertokens.com/docs/passwordless/quick-setup/database-setup/mysql) but the PostgreSQL doesn't (https://supertokens.com/docs/passwordless/quick-setup/database-setup/postgresql)? Seems like
    passwordless_users
    is used by both implementations and not adding the table caused some errors in our implementation (but that could just be us)
  • r

    rp

    03/07/2022, 11:40 AM
    Ah! That's a mistake in our docs. The postgresql plugin does add the table though: https://github.com/supertokens/supertokens-postgresql-plugin/blob/master/src/main/java/io/supertokens/storage/postgresql/queries/PasswordlessQueries.java#L49
Powered by Linen
Title
r

rp

03/07/2022, 11:40 AM
Ah! That's a mistake in our docs. The postgresql plugin does add the table though: https://github.com/supertokens/supertokens-postgresql-plugin/blob/master/src/main/java/io/supertokens/storage/postgresql/queries/PasswordlessQueries.java#L49
View count: 1