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

    rp

    02/14/2022, 4:18 AM
    hey @User there does seem to be some issue with the demo credentials we provided for apple. We will see what's wrong. Until then, you should try your own credentials.
  • r

    rp

    02/14/2022, 4:25 AM
    Can you give more details about the error? Which API call is resulting in a 500 / 400?
  • s

    scherbatsky.jr

    02/14/2022, 4:29 AM
    I am trying to override the signUp function. How do I access the request headers? I saw an example using input.options.req,getHeaderValue('origin') but it does not seem right when input is just {email; password}
  • r

    rp

    02/14/2022, 4:30 AM
    You need to override the sign up API. So in the override object, instead of passing “functions”, you should pass “apis”
  • r

    rp

    02/14/2022, 4:30 AM
    And in that, you will find signUpPOST function which you can override. And in that, you will have access to input.options.req
  • s

    scherbatsky.jr

    02/14/2022, 4:32 AM
    Thanks @User !!!
  • n

    nkshah2

    02/14/2022, 7:04 AM
    @User Also one thing to keep in mind is that Apple credentials are tied to bundle identifiers for iOS devices. And the demo app uses a specific library to make it work. If you are testing on an iOS device/simulator and getting the error the bundle ID may be the problem. Also any additional info would help: What OS you are trying it on? Did you use the same library for Apple auth that the demo app does? Did you see an error on the Apple sign in view (that the device renders on iOS or the webpage on Android) or is it a specific API thats throwing it etc etc
  • b

    Bruno Diferente

    02/14/2022, 10:30 AM
    Hello,i have another question about localization if possible, Does switching between languages work for you guys, because mine is just showing English language
  • r

    rp

    02/14/2022, 10:31 AM
    How are you switching between languages?
  • r

    rp

    02/14/2022, 10:31 AM
    You need to call the i18next lib for that since you are using that
  • b

    Bruno Diferente

    02/14/2022, 10:32 AM
    Just using the URL
  • r

    rp

    02/14/2022, 10:33 AM
    Hmm. Is that how you are supposed to switch langugues in i18n? I'm not sure.
  • b

    Bruno Diferente

    02/14/2022, 10:33 AM
    using router with locale = ""
  • r

    rp

    02/14/2022, 10:33 AM
    I see.
  • p

    porcellus

    02/14/2022, 10:36 AM
    hi
  • b

    Bruno Diferente

    02/14/2022, 10:36 AM
    Changing language from i18n file works perfect
  • p

    porcellus

    02/14/2022, 10:37 AM
    I tested it with just i18n and calling changeLanguage
  • b

    Bruno Diferente

    02/14/2022, 10:37 AM
    but when i use next router
  • b

    Bruno Diferente

    02/14/2022, 10:38 AM
    nothing changed at auth level. but the application still load the french language
  • b

    Bruno Diferente

    02/14/2022, 10:38 AM
    Yes @User
  • p

    porcellus

    02/14/2022, 10:38 AM
    so is supertokens inside the router that has the locale setting? I'll have to look into this, but my guess is that's where the context is set up.
  • p

    porcellus

    02/14/2022, 10:39 AM
    or do you have a repo I could look at? I think that'd be the easiest.
  • b

    Bruno Diferente

    02/14/2022, 10:40 AM
    unfortunately I'm working on private repo with more complications haha
  • p

    porcellus

    02/14/2022, 10:41 AM
    hmm, ok. so how are you embedding supertokens? is it inside the route where the locale is set?
  • b

    Bruno Diferente

    02/14/2022, 10:44 AM
    Well the configuration was made before i start working on it, what I did is to split login / register / reset password into three different pages since i'm working on nextjs project, and integrate localization
  • b

    Bruno Diferente

    02/14/2022, 10:44 AM
    will share with you how's my structure
  • b

    Bruno Diferente

    02/14/2022, 11:07 AM
    @User i did implement i18next.changeLanguage but still the component does not rerender
  • p

    porcellus

    02/14/2022, 11:09 AM
    Implement
    changeLanguage
    ? You mean an event handler? Could you call the
    i18next.changeLanguage
    manually to test if it actually changes the language of the auth UI? e.g, in the browser console?
  • m

    mr_robek

    02/14/2022, 11:56 AM
    Hi @User , How are you? I am trying to debug a bug that we faced in our environments. We have 2 environments and we call them stage and testing . Somehow our testing environment was trying to perform a refresh session action by calling our stage environment. Have you every seen a similar issue? Can you give me a hint where should I look when debugging it? Here is a screen with error and our app config. Thanks!
    r
    • 2
    • 8
  • b

    Bruno Diferente

    02/14/2022, 11:56 AM
    Not available in the browser console
Powered by Linen
Title
b

Bruno Diferente

02/14/2022, 11:56 AM
Not available in the browser console
View count: 2