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

    nadilas

    05/08/2022, 1:21 PM
    sure, no problem: https://github.com/supertokens/supertokens-node/issues/299
  • r

    Roobyx

    05/08/2022, 1:51 PM
    Hey all, are there any known react 18 issues? Is it ok for ST to be used with React 18?
    r
    • 2
    • 11
  • j

    JoelC

    05/08/2022, 4:20 PM
    Is lambda authorizer work with http api gateway?
    r
    n
    • 3
    • 33
  • s

    shorthair_[]

    05/09/2022, 5:33 PM
    hello
  • s

    shorthair_[]

    05/09/2022, 5:33 PM
    im trying to implement supertokens to react native
    r
    • 2
    • 30
  • s

    shorthair_[]

    05/09/2022, 5:34 PM
    during my process
  • s

    shorthair_[]

    05/09/2022, 5:34 PM
    i encountered an error
  • s

    shorthair_[]

    05/09/2022, 5:36 PM
    it came from a file downloaded from supertokens called
  • c

    codingtomato

    05/10/2022, 10:07 AM
    Hey 👋 me again with another problem. I use Supertokens for a Login into an app. It works fine on the webbrowser but when I try it on my smartphone via Capacitor.js I get a endless refresh loop when I call the doesSessionExist() function. Thanks in advance!
    r
    n
    • 3
    • 17
  • j

    jj_

    05/11/2022, 11:04 AM
    hey , i need to know if there is a way to use two diffrent signin pages , with diffrent recipies .
    r
    • 2
    • 2
  • j

    jj_

    05/11/2022, 11:05 AM
    i looked into this link : https://github.com/supertokens/supertokens-auth-react/issues/18
  • j

    jj_

    05/11/2022, 11:05 AM
    but i dont quite understand how this can be done , can you elabrate
  • s

    solminded

    05/11/2022, 1:58 PM
    Hi again, I am trying to get password reset email open a deep link in my react native app. So I am posting user password request via
    /api/auth/user/password/reset/token
    and at the backend I get
    user
    and
    passwordResetURLWithToken
    params and I can customize the email, so far so good. What I would like to do here is pass additional info to backend
    createAndSendCustomEmail
    method so that I can generate deep links according to users OS etc and send the email correctly. If I pass additional info in the
    formFields
    obj I get the 'Are you sending too many / too few formFields ' 400 error. I would appreciate any pointers. Thanks.
    r
    • 2
    • 18
  • r

    Romain

    05/11/2022, 3:03 PM
    Hello, i'm trying to create a magic link that will redirect to an URL (can be different on each magiclink), and without login page display. The magic link creation works, i have something like this (http://localhost:3000/dashboardhttp://localhost:3000/auth/verify?rid=passwordless&preAuthSessionId=*******) And I have this code on my front :
    getRedirectionURL: async (context) => {
                    if (context.action === "SUCCESS") {
                        if (context.redirectToPath !== undefined) {
                            // we are navigating back to where the user was before they authenticated
                            return context.redirectToPath;
                        }
                        return "/dashboard";
                    }
                    return undefined;
                }
    but I don't see how to pass the
    redirectToPath
    to get it here Thanks for your help 🙂
    r
    • 2
    • 47
  • f

    FrAgOrDiE

    05/11/2022, 3:05 PM
    Hi there, for frontend calls I'm not using either fetch or axios. It's umi-request. Which is not including authentication headers automatically. We're trying to create a custom interceptor but I don't know how to get the plain access token in order to include it in the headers. How can I do this?
    r
    r
    • 3
    • 8
  • f

    funk101

    05/11/2022, 3:57 PM
    using nextjs, is it possible to wrap my "app.js" in to be able to access any part of the site using useSessionContext()?
    r
    • 2
    • 1
  • f

    funk101

    05/11/2022, 3:59 PM
    ok, thanks
  • f

    funk101

    05/11/2022, 4:51 PM
    nextjs: I have this code in my "_app.js" file. However, the page get's stuck in a loop...
  • f

    funk101

    05/11/2022, 4:51 PM
    import React from "react";
    import dynamic from "next/dynamic";
    import SuperTokensReact from "supertokens-auth-react";
    import EmailPassword from "supertokens-auth-react/recipe/emailpassword";
    
    import { frontendConfig } from "../config/frontendConfig";
    
    if (typeof window !== "undefined") {
      // we only want to call this init function on the frontend, so we check typeof window !== 'undefined'
      SuperTokensReact.init(frontendConfig());
    }
    
    const EmailPasswordAuthNoSSR = dynamic(
      new Promise((res) => res(EmailPassword.EmailPasswordAuth)),
      { ssr: false }
    );
    function MyApp({ Component, pageProps }) {
      return (
        <EmailPasswordAuthNoSSR>
          <Component {...pageProps} />;
        </EmailPasswordAuthNoSSR>
      );
    }
    
    export default MyApp;
    r
    • 2
    • 20
  • t

    TH

    05/11/2022, 6:53 PM
    Hey, I'm receiving the following error. (I'm working on macOS) RuntimeError: asyncio.run() cannot be called from a running event loop sys:1: RuntimeWarning: coroutine 'Supertokens.send_telemetry' was never awaited RuntimeWarning: Enable tracemalloc to get the object allocation traceback
    r
    λ
    s
    • 4
    • 37
  • t

    TH

    05/11/2022, 6:55 PM
    I'm using python fastAPI
  • f

    funk101

    05/12/2022, 4:23 AM
    nextjs: I wrap my pages in a layout which includes a header, content area, and footer. In my frontendConfig() file I do "EmailPasswordSignIn_Override" and have this code...
  • f

    funk101

    05/12/2022, 4:24 AM
    EmailPasswordSignIn_Override: ({ DefaultComponent, ...props }) => {
                  return (
                    <Layout
                      pageTitle="SignIn/Register"
                      contentTitle="SignIn/Register"
                      metaDescription="Meta description here"
                      canonical="/auth"
                    >
                      <SingleColumnLayout>
                        <DefaultComponent {...props} />
                      </SingleColumnLayout>
                    </Layout>
                  );
                },
  • f

    funk101

    05/12/2022, 4:24 AM
    But when the page renders, the design is blowing up
  • f

    funk101

    05/12/2022, 4:24 AM
    Is this correct way to do this?
  • r

    rp

    05/12/2022, 4:26 AM
    Have a look at this: https://supertokens.com/docs/emailpassword/introduction
  • f

    funk101

    05/12/2022, 4:27 AM
    is that the right link?
  • f

    funk101

    05/12/2022, 4:28 AM
    doesn't say much
  • r

    rp

    05/12/2022, 4:28 AM
    Oh sorry
  • r

    rp

    05/12/2022, 4:29 AM
    Go to commons customisation section -> embed sign in / up form in page
Powered by Linen
Title
r

rp

05/12/2022, 4:29 AM
Go to commons customisation section -> embed sign in / up form in page
View count: 1