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
support-questions
  • y

    Yashwant

    02/10/2022, 2:42 PM
    Thanks!
  • s

    scherbatsky.jr

    02/11/2022, 7:31 AM
    I am having some setting up supertokens using docker. In the section, where it says localhost/127.0.0.1 is not applicable for mysql host, what should be the correct value? I have setup mysql locally on 127.0.0.1, should i put my own ip address?
  • r

    rp

    02/11/2022, 7:49 AM
    Yes, your own IP address.
  • r

    rp

    02/11/2022, 7:50 AM
    So you will also have to make sure that MySQL is listening on that IP address AND that the user you create can do operations if connected to via IP address (there are many tutorials online for this)
  • s

    scherbatsky.jr

    02/11/2022, 7:51 AM
    Alright thanks!
  • s

    scherbatsky.jr

    02/11/2022, 7:52 AM
    Also, setting up without docker, I am receiving following error Starting task: DeleteExpiredAccessTokenSigningKeys Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/catalina/LifecycleException Wondering if it is a common issue?
  • r

    rp

    02/11/2022, 7:53 AM
    Can you tell me the steps you ran and which OS?
  • s

    scherbatsky.jr

    02/11/2022, 7:54 AM
    I am using Ubuntu 20 LTS I downloaded the core file, installed and entered "supertokens start" It does create tables in the database but runs into this error immediately.
  • r

    rp

    02/11/2022, 7:55 AM
    Huh.. interesting. Can you please open a github issue about this? I'll have a look at it today / tomorrow.
  • s

    scherbatsky.jr

    02/11/2022, 7:55 AM
    Sure
  • r

    rp

    02/11/2022, 7:55 AM
    Thanks. You can open it here: https://github.com/supertokens/supertokens-core/issues
  • t

    TaRaNTuLaH

    02/11/2022, 9:05 AM
    I have tried it out, but still the only thing I am getting in input is userId, accessTokenPayload remains empty, and I need access to things like e-mail etc. Since u said that querying database is not the right approach, how can I achieve that?
  • r

    rp

    02/11/2022, 9:06 AM
    Can you share some code regarding how you tried to set the content in the access token payload?
  • r

    rp

    02/11/2022, 9:07 AM
    Also, querying the db is fine. What I meant is that sending the user ID to the backend to identify the user is not fine.
  • t

    TaRaNTuLaH

    02/11/2022, 9:12 AM
    Oh okay misunderstood then 😄 I wasn't even trying to set the content as createNewSession(input) has only userId on it, but that might be an issue with creating access token payload service now when I am thinking about it 🙂
  • t

    TaRaNTuLaH

    02/11/2022, 9:15 AM
    but the way u suggested with setting the keys and retrieving it works fine (tested on static data) 🙂 I just needed to access dynamic data from db, and thought that's wrong until now 🙂 Thanks for clearing it out for me! 🙂
  • r

    rp

    02/11/2022, 9:30 AM
    Awesome! You can run any logic (even async logic) in the
    createNewSession
    function. So accessing the db and then putting that info in the access token payload should work! Btw, when is the info in the db inserted? In the post sign up override or somewhere else?
  • d

    dsmurl

    02/12/2022, 5:20 PM
    Is anyone here interested in helping me figure out adding ssl to my supertokens server? I'm trying to use the superTokens docs
    r
    26 replies · 2 participants
  • r

    rp

    02/12/2022, 5:21 PM
    The docs has a guide on how to do that
  • d

    dsmurl

    02/12/2022, 5:22 PM
    I'm using the ST docs
  • r

    rp

    02/12/2022, 5:22 PM
    Ah ok
  • u

    user

    02/13/2022, 12:15 AM
    Hi, why in the install with docker there is a license? Why do we need a license if it's open?
  • r

    rp

    02/13/2022, 5:19 AM
    hey @User we follow the Apache 2.0 license (which is an open source license). The license you see in the install dir is exactly that one.
  • u

    user

    02/13/2022, 9:38 AM
    And why do we need a license when installing with docker?
  • r

    rp

    02/13/2022, 9:38 AM
    We just put it in there cause that's standard practice.
  • r

    rp

    02/13/2022, 9:38 AM
    You don't actually need any license key or anything
  • r

    rp

    02/13/2022, 9:39 AM
    Are you talking about something else?
  • u

    user

    02/13/2022, 9:39 AM
    Go to your dashboard to get the docker image and license key ID
  • u

    user

    02/13/2022, 9:39 AM
    About this
  • r

    rp

    02/13/2022, 9:39 AM
    Oh.. where is that written?
Powered by Linen
Title
r

rp

02/13/2022, 9:39 AM
Oh.. where is that written?
View count: 2