• nxteword

    nxteword

    1 year ago
    Please let me know if you need repo, I'll DM you.
  • k

    kevin.a

    1 year ago
    Hey @User , I've never encountered this issue before. Can you give me more info about your setup?
  • k

    kevin.a

    1 year ago
    In the meantime , during your development process and to help you go forward, you could disable shadowDom as specified here https://supertokens.io/docs/auth-react/emailpassword/init (
    useShadowDom: false
    )
  • d

    dbMI

    1 year ago
    from the session can I get the users login email?
  • d

    dbMI

    1 year ago
    I'm trying to get the users email address once they have logged in.
  • nxteword

    nxteword

    1 year ago
    message has been deleted
  • nxteword

    nxteword

    1 year ago
    Can you please check if it's happening for you as well? Thanks.
  • r

    rp

    1 year ago
    @User , If you want the email ID on the backend, then you can do the following:- Get the user ID from the session using
    req.session.getUserId()
    - From the userId, you can get the email via:
    let {getUserById} = require("supertokens-node/recipe/emailpassword");
    
    let user = getUserById(userId);
    let email = user.email;
    If you would like to get the email on the frontend, you should create an API which returns the email from the session, or you can even put the email in the JWT payload when creating a session.
  • ?

    user

    1 year ago
    I would like to have the following behavior:
    mysite.com/
    be accessible without auth
    mysite.com/feed
    requiring auth So then after you sign in at
    mysite.com/auth
    it will redirect to
    mysite.com/feed
    instead of
    mysite.com/