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

    Mydogspies

    10/09/2021, 11:06 AM
    One of those crazy things... my dog always watches me... and I needed I nick for a project... so it become nick for it all, hahahah
  • r

    rp

    10/09/2021, 11:06 AM
    Hahahahaha
  • v

    videv

    10/12/2021, 7:09 AM
    https://supertokens.io/docs/contribute/module-architecture/core/overview //By concurrently safe, we mean that it is thread safe, as well as multi-process safe. This means that if an operation is not idempotent (like signing up a new user based on their email), doing that operation in parallel across different cores should have the same effect that these operations were instead run in a sequence. This in turn implies that we will have to use mutex locking with a core, or db transactions (with row level locking), or some concensus algorithm, or some distributed locking system. //
  • r

    rp

    10/12/2021, 7:10 AM
    Yes. That is correct
  • v

    videv

    10/12/2021, 7:11 AM
    My question is regarding the above... locking involves complex steps and prone to errors (dead locks sometimes), performance hits. My question is this... Architecturally, is it easier to consider the following? Keep one core instance as write instance (mainly for user creation/updates) and others as read?
  • v

    videv

    10/12/2021, 7:12 AM
    Sorry, hit the enter button too early and I could not go back and edit.
  • r

    rp

    10/12/2021, 7:16 AM
    Keeping only one core for write has the following implications: - Single point of failure - Difficult to scale out As a result, we decided to make all instances such that you can do any operation with them in any order. We use row level locking in SQL dbs + db constraints (like unique or primary key) - which prevent race conditions. Row level locking is mostly applied to operations that require a read -> update, whereas operations that require creation of a new row (like sign up a user), we rely on db constraint (like keeping the email column unique).
  • u

    ム尺ノᄊメレ0ᄃズ

    10/17/2021, 5:49 AM
    how do you install this via plesk/cpanel
  • r

    rp

    10/17/2021, 5:50 AM
    We don’t currently support PHP
  • r

    rp

    10/17/2021, 5:51 AM
    But you can integrate with our APIs directly if you’d like
  • u

    ム尺ノᄊメレ0ᄃズ

    10/17/2021, 5:51 AM
    theres a section for node based apps
  • u

    ム尺ノᄊメレ0ᄃズ

    10/17/2021, 5:51 AM
    as weell as docker
  • r

    rp

    10/17/2021, 5:51 AM
    Yea. We do support Node. But isn’t cpanel in PHP?
  • u

    ム尺ノᄊメレ0ᄃズ

    10/17/2021, 5:51 AM
    i use plesk.. it has more features
  • e

    Embraser01

    10/19/2021, 7:57 AM
    Hey! I started some time ago the integration of supertokens and so far so good 👏 While there is still some work to do (I still have to integrate supertokens into our react-native app - nice timing btw 😄 - ), I wanted to know if you had a timeframe on the 2FA feature or a draft on how that will look?
  • r

    rp

    10/19/2021, 7:58 AM
    We will have 2fa in a couple of months from now. We have already started working on it internally and should have an equivalent of a "RFC" in some time. What second factor are you considering using?
  • e

    Embraser01

    10/19/2021, 8:04 AM
    Ok, might be a little too long for us to wait, will see how to implement it (I still have your tips from a couple months ago). For now I think it will be a SMS or email based factor but once the feature is available on your side, I'd like to move to it to propose more factors
  • r

    rp

    10/19/2021, 8:10 AM
    When you say more factors, do you mean that you want to offer a choice to your users on which type of second factor they should enable?
  • e

    Embraser01

    10/19/2021, 8:24 AM
    yes
  • r

    rp

    10/19/2021, 8:33 AM
    Got it. And what would those options be? SMS OTP, email OTP, Authenticator app? Or something else?
  • e

    Embraser01

    10/19/2021, 8:59 AM
    That would be all. The other reason I would move to supertokens OTP once it's available is to have less thing to worry when it comes to security (using your solution instead of a custom one).
  • r

    rp

    10/19/2021, 8:59 AM
    Makes sense
  • k

    Killian

    10/21/2021, 7:51 PM
    Can I not get the google user Image, with log in with Gooogle?
  • r

    rp

    10/22/2021, 3:41 AM
    You can. You would have to: - modify the scopes array during the init call: https://supertokens.io/docs/thirdpartyemailpassword/common-customizations/signup-form/changing-oauth-scopes - the fetch the image via the response from the auth code exchange or then use google's access token to fetch the image. You can get these like this: https://supertokens.io/docs/thirdpartyemailpassword/common-customizations/signup-form/built-in-providers#get-the-third-party-providers-access-token
  • m

    M̸̹̣i̼̗č̹̰o̧̲ͅ

    10/22/2021, 9:05 PM
    hey @rp is it possible to add fields on signUp form with email + password recipe? i tried the way its in thirdparty recipe but im getting no additional fields back to express even tho they do show up in signUp form
  • m

    M̸̹̣i̼̗č̹̰o̧̲ͅ

    10/22/2021, 9:05 PM
    oh sorry, i should've posted in supertokens-questions, will move there
  • r

    rp

    10/22/2021, 9:06 PM
    Which version of the node SDK are you using?
  • m

    M̸̹̣i̼̗č̹̰o̧̲ͅ

    10/22/2021, 9:06 PM
    "supertokens-node": "^7.0.2"
  • r

    rp

    10/22/2021, 9:07 PM
    Right. So you should be able to access the fields on your backend via the override feature. Have you done that? If yes, can I see the code?
  • m

    M̸̹̣i̼̗č̹̰o̧̲ͅ

    10/22/2021, 9:07 PM
    sure
Powered by Linen
Title
m

M̸̹̣i̼̗č̹̰o̧̲ͅ

10/22/2021, 9:07 PM
sure
View count: 3