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

    teebot

    02/01/2022, 3:26 PM
    Hello, I'm currently implementing passwordless with text messages in nodeJS (fastify). We always identify users by the their phone and don't store supertokens user ids on our own DB hence I need the phone to be either on sessionData or accessToken. I could not find a way to decorate my session with the phone number of a user. At first I thought I could add it in
    userCtx
    createAndSendCustomTextMessage: async (input, userCtx) =>...
    but that does not seem to propagate to a
    createNewSession
    override. Does someone have an idea on how to achieve this?
  • r

    rp

    02/01/2022, 3:57 PM
    hey @User , we are working on a feature that will allow you to do this more easily, but at the moment, you can do it by overriding the
    consumeCodePOST
    API like this: https://gist.github.com/rishabhpoddar/878ada3e91b039a798e88aa311d9c846
  • t

    teebot

    02/01/2022, 4:02 PM
    awesome @User that worked really well!
  • t

    teebot

    02/01/2022, 4:02 PM
    thank you.
  • t

    teebot

    02/01/2022, 4:04 PM
    BTW a little comment about something I saw in the doc "We are working on our own SMS / email delivery service which will make this step much easier. Until then, you have to send the SMS / emails yourself." I hope that when supertokens does that we will still be able to use
    createAndSendCustomTextMessage
    . For us this is actually a feature compared to auth0 which does not provide that hook. We have more control on rate limiting text messages, fighting toll frauds etc.
  • r

    rp

    02/01/2022, 4:06 PM
    Yes. You will still be able to use
    createAndSendCustomTextMessage
    🙂
  • r

    rp

    02/01/2022, 4:07 PM
    Would you mind getting on a call with me to tell me about how you fight SMS spam? Would be useful for us when building our own service.
  • t

    teebot

    02/01/2022, 4:13 PM
    sure. calendar link in your DM
  • b

    bill92

    02/01/2022, 5:04 PM
    what provider do you use to send SMS? 🙂
  • t

    teebot

    02/01/2022, 7:30 PM
    twilio
  • u

    user

    02/02/2022, 2:49 PM
    RP, I meant a Java SDK for backend
  • r

    rp

    02/02/2022, 2:50 PM
    @User we don’t have one yet
  • r

    rp

    02/02/2022, 2:51 PM
    But you can call the core’s APIs directly
  • u

    user

    02/02/2022, 2:51 PM
    not even in dev? :c
  • r

    rp

    02/02/2022, 2:51 PM
    Not even in dev
  • u

    user

    02/02/2022, 2:51 PM
    damn
  • u

    user

    02/02/2022, 2:51 PM
    Anywho I'm gonna work on a electron app that runs on your computer's boot to launch other applications after a specified amount of time
  • u

    user

    02/02/2022, 2:52 PM
    gotta make it work on linux too cuz I wanna dual boot linux
  • r

    rp

    02/02/2022, 3:35 PM
    I see. That’s cool!
  • f

    firrae

    02/03/2022, 1:54 AM
    Hi there, is there any documentation/guide on the React Native implementation? I see the SDK reference, but it’s not overly clear the exact steps.
  • n

    nkshah2

    02/03/2022, 2:41 AM
    @User You can start by selecting what kind of auth you would like to implement here: https://supertokens.com/docs/community/recipes You should then be able to select react-native as you follow along
  • f

    firrae

    02/03/2022, 2:50 AM
    @User hm, ok. That page is crashing on my browser so I’ll have to figure out what’s going on with that first I suppose lol. But I’ll check it as soon as I can.
  • n

    nkshah2

    02/03/2022, 2:50 AM
    Oh, what browser are you using?
  • f

    firrae

    02/03/2022, 3:02 AM
    Chrome, but it’s been acting up all day so maybe I just need to reinstall it
  • f

    firrae

    02/03/2022, 3:03 AM
    Even with plugins all disabled
  • n

    nkshah2

    02/03/2022, 3:03 AM
    Ah fair
  • f

    firrae

    02/03/2022, 4:01 AM
    Ok, I see it now. Thanks @User. I do have a follow up question though on if this works with Expo? Currently we’re using Expo for roughing things out since it seems to simplify some things.
  • r

    rp

    02/03/2022, 4:02 AM
    It should!
  • r

    rp

    02/03/2022, 4:03 AM
    The SDK we have only helps with session management at the moment. For login, you will have to build your own UI and call the APIs exposed by our backend SDK using axios / fetch yourself
  • a

    aschepis

    02/03/2022, 4:06 PM
    does supertokens allow me to integrate with a customer's own IdP via SAML?
Powered by Linen
Title
a

aschepis

02/03/2022, 4:06 PM
does supertokens allow me to integrate with a customer's own IdP via SAML?
View count: 1