• pogseal

    pogseal

    8 months ago
    do you need
    isInServerlessEnv: true,
    if not deploying on Vercel or on a serverless hosting provider?
  • r

    rp

    8 months ago
    U don’t need to set it to true in that case
  • pogseal

    pogseal

    8 months ago
    kk
  • pogseal

    pogseal

    8 months ago
    and assuming don't need this?
    // NOTE: We need CORS only if we are querying the APIs from a different origin
      await NextCors(req, res, {
        methods: ["GET", "HEAD", "PUT", "PATCH", "POST", "DELETE"],
        origin: "https://",
        credentials: true,
        allowedHeaders: ["content-type", ...supertokens.getAllCORSHeaders()],
      });
  • r

    rp

    8 months ago
    Yea. Don’t need it. But perhaps might need it for subdomain querying
  • ?

    user

    8 months ago
    @User - I was watching your video on OSW. I have a question regarding the point about IP address matching to expire the access token earlier.
  • ?

    user

    8 months ago
    How do we implement this in a way that each request does not require database interaction? Do we keep the IP address in the JWT?
  • r

    rp

    8 months ago
    Yes. IP in access token. Exactly
  • ?

    user

    8 months ago
    Cool
  • ItsDesm

    ItsDesm

    8 months ago
    Hello, lovin this project so far. Thanks for all the hard work. One question, is there any way to send additional data from the react signup form to the backend, data in addition to the form fields? I did an override on the backend API when creating a user so that it also creates that user in my hasura database. It would be awesome If I could pass some additional data in there to help with my multi tenancy. I was thinking of using the additional custom form fields in the front end to pass some extra data but that wont work if I can't make the field hidden. That would be an easy way of doing it. allowing for a hidden + default custom field on the front end that would then be available on the back.