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
  • u

    user

    09/25/2021, 8:09 AM
    Hi, I am building a deno app and I'd like to use supertokens. Can I use the node api in deno?
  • r

    rp

    09/25/2021, 8:10 AM
    I don’t know if node is 100% compatible with Deno. If it is, you should be able to use it.
  • v

    videv

    09/25/2021, 9:29 AM
    How to build from source and install?
  • r

    rp

    09/25/2021, 9:29 AM
    https://github.com/supertokens/supertokens-core/wiki/Building-from-source
  • r

    rp

    09/25/2021, 9:30 AM
    Note that the above will work only on linux / mac based systems. You might run into issues in windows
  • v

    videv

    09/25/2021, 9:34 AM
    Let me list here the problems I face in following from that link you shared.
  • r

    rp

    09/25/2021, 9:35 AM
    please do.
  • v

    videv

    09/25/2021, 9:46 AM
    1. Looks like I need to clone the supertokens-root repo first and run the "loadModules" first... that gets me the "supertokens-core" and "cloning "supertokens-plugin-interface and "utils" repos. 2. "./startTestingEnv --wait" gets completed successfully... 3. "./startTestingEnv" runs successfully. No tests failed. 400 odd tests are all PASSED. 4. "java -classpath "./cli/*" io.supertokens.cli.Main true install" requires lot of hacks. "./cli/*" does not have the expected jar. It is under "./cli/jar". Somewhere it complained about version.yaml not existing. Hacked it by copying version.yaml from docker machine... After fixing all the classpath problem, "supertokens list" works fine. But, "supertokens start" failed...
  • v

    videv

    09/25/2021, 9:46 AM
    Are these instructions upto date and works for the currently available repo in github?\
  • r

    rp

    09/25/2021, 9:47 AM
    While doing step 4 (from your list), you should have
    ./startTestingEnv --wait
    running on a shell.
  • v

    videv

    09/25/2021, 9:48 AM
    yes, it ran. then I broke it. Should I keep it running for further steps?
  • r

    rp

    09/25/2021, 9:48 AM
    Yes. Keep it running all the time
  • r

    rp

    09/25/2021, 9:48 AM
    Do not stop that process.
  • v

    videv

    09/25/2021, 9:48 AM
    ok, will try
  • r

    rp

    09/25/2021, 9:48 AM
    And while that's running, do step number 5 onwards in https://github.com/supertokens/supertokens-core/wiki/Building-from-source
  • r

    rp

    09/25/2021, 9:48 AM
    Then you will not run into any problem.
  • v

    videv

    09/25/2021, 9:49 AM
    ok, will do.
  • v

    videv

    09/25/2021, 9:57 AM
    Hurray! it got installed and "supertokens start" started the process.
  • r

    rp

    09/25/2021, 9:58 AM
    Awesome.
  • u

    user

    10/01/2021, 1:50 PM
    Hi everyone, I recently came across supertokens and wanted to get started. I am using nodejs+mongodb and react on frontend. I want to create SAAS application just wanted to know if I want to implement a adin user and each admin user will have some more users under him with specific permissions or roles then is it possible to implement such thing?
  • r

    rp

    10/01/2021, 1:53 PM
    Hi @User , we currently do auth + sessions only. The features we provide for access control are limited to: - Putting the user's role in their session - Fetching a user's role on the backend, from their session - Fetching a user's role on the frontend, from their session. - Changing a user's role in a session in an API. You can checkout something like https://www.osohq.com/ for more features of access control. Use them for authorisation, and use SuperTokens for authentication.
  • t

    Tyho

    10/01/2021, 2:19 PM
    Hello everyone. I am trying to get supertokens to run with nestjs and followed the guide on the website. Some functions are marked as deprecated though. https://supertokens.io/docs/session/nestjs/guide#6-add-the-supertokens-error-handler
  • r

    rp

    10/01/2021, 3:18 PM
    @User you can import the
    errorHandler
    from
    supertokens-node/framework/express
    instead
  • r

    rp

    10/01/2021, 3:20 PM
    I believe that that would be the only one that's showing the deprecated warning? Or is there some other as well?
  • t

    Tyho

    10/01/2021, 3:25 PM
    Thanks for your reply πŸ‘ No, I think that's it. But the supertokens.service.spec.ts fails the test, because of ConfigInjectionToken. I am new to Nest too, I am not sure how to test @inject properly.
  • r

    rp

    10/01/2021, 3:26 PM
    @User can you please help with this?
  • p

    porcellus

    10/01/2021, 3:29 PM
    Hi, why do you want to test
    @inject
    ? if it's just the test generated by default you can safely ignore(/delete) it if you don't want to add any meaningful test there
  • t

    Tyho

    10/01/2021, 3:32 PM
    I assumed you are supposed to do that. Got a bit confused since generated boilerplate usually shows best practice, no?
  • t

    Tyho

    10/01/2021, 3:33 PM
    It's not that important though, I was just curious
  • p

    porcellus

    10/01/2021, 3:33 PM
    Well, yeah, testing your services is a best practice πŸ˜„ so if you want to make that test run, you'd need to add the provider for
    ConfigProviderToken
    into the testmodule as well
Powered by Linen
Title
p

porcellus

10/01/2021, 3:33 PM
Well, yeah, testing your services is a best practice πŸ˜„ so if you want to make that test run, you'd need to add the provider for
ConfigProviderToken
into the testmodule as well
View count: 2