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

    rp

    01/11/2022, 5:00 AM
    thanks!
  • a

    AINAR

    01/11/2022, 9:49 AM
    Hi guys, How can I change the texts like "Sign in"... Etc ?
    s
    r
    4 replies · 3 participants
  • r

    rp

    01/11/2022, 9:50 AM
    Do you want to change all the texts? Or just a few?
  • a

    AINAR

    01/11/2022, 9:51 AM
    Just few
  • r

    rp

    01/11/2022, 9:51 AM
    Method 1) You can checkout our react component override feature in the advanced customisation section
  • r

    rp

    01/11/2022, 9:52 AM
    Method 2) run ur own JS which can select that element and change the text to what you like
  • s

    smoleniuch

    01/11/2022, 1:37 PM
    Front-End components customization
  • r

    Rohan Kulkarni | Developer

    01/11/2022, 4:51 PM
    Hey Folks !!
  • r

    rp

    01/11/2022, 4:51 PM
    Hey!
  • u

    user

    01/11/2022, 6:05 PM
    Hey everyone!!!
  • r

    rp

    01/11/2022, 7:04 PM
    Hey!
  • a

    aschepis

    01/12/2022, 3:14 AM
    Does supertokens support authentication via an API key? i would like my app to be API first so that the UI uses it (and thus would accept the cookies from supertokens) but they could also send an api key in a header. what is the pattern typically used for this if you are using supertokens?
  • r

    rp

    01/12/2022, 4:02 AM
    Hey @aschepis you can use our JWT recipe to issue JWTs with any claim you like, and then in the create your own JWT verification middleware (using any standard JWT lib).
  • r

    rp

    01/12/2022, 4:03 AM
    You can use that along with our verifySession middleware by passing sessionRequired: false in the verifySession function. So in case a supertokens session exists, you use that, otherwise you try and verify the JWT header.
  • a

    aschepis

    01/12/2022, 12:48 PM
    thank you!
  • a

    aschepis

    01/12/2022, 12:48 PM
    where can i find doc on the jwt recipe?
  • r

    rp

    01/12/2022, 12:50 PM
    There aren’t any at the moment. But I’ll write up a few code snippets here for your help. Which SDK are you using?
  • a

    aschepis

    01/12/2022, 12:50 PM
    golang
  • a

    aschepis

    01/12/2022, 12:51 PM
    i found the api, fwiw. im looking at how it would fit in with
    supertokens.Init
  • r

    rp

    01/12/2022, 12:51 PM
    Sounds good. I’ll do a write up here shortly.
  • a

    aschepis

    01/12/2022, 12:51 PM
    no rush, thanks
  • r

    rp

    01/12/2022, 1:25 PM
    @User first you want to enable the JWT feature like shown here: https://supertokens.io/docs/thirdpartyemailpassword/common-customizations/sessions/with-jwt/enabling-jwts Then you can create JWTs like:
    session.CreateJWT(map[string]interface{}{
            "customKey1": "customValue1",
            "customKey2": "customValue2",
            // other JWT claims
        }, nil)
    The second param is the validity in seconds. By default, it is the access token lifetimes + 30 seconds. But if you want it really long, you can set it to some 100 years (in second) or something.. This is the function signature: https://pkg.go.dev/github.com/supertokens/supertokens-golang@v0.3.5/recipe/session#CreateJWT Then you can follow these docs for verification of JWT in your APIs: https://supertokens.io/docs/thirdpartyemailpassword/common-customizations/sessions/with-jwt/jwt-verification
  • u

    user

    01/12/2022, 3:58 PM
    docker registry is down
  • r

    rp

    01/12/2022, 3:59 PM
    Seems to be working for me. Anything that made you think it's down?
  • b

    Bruno Diferente

    01/12/2022, 3:59 PM
    Hello there
  • r

    rp

    01/12/2022, 3:59 PM
    hey!
  • b

    Bruno Diferente

    01/12/2022, 4:00 PM
    how are you doing there 🙂 ?
  • r

    rp

    01/12/2022, 4:00 PM
    great! how about you? What got you here?
  • r

    rp

    01/12/2022, 4:00 PM
    🙂
  • b

    Bruno Diferente

    01/12/2022, 4:00 PM
    Fine! Well was reading about super tokens
Powered by Linen
Title
b

Bruno Diferente

01/12/2022, 4:00 PM
Fine! Well was reading about super tokens
View count: 2