Code Monkey home page Code Monkey logo

Comments (1)

rishabhpoddar avatar rishabhpoddar commented on June 3, 2024 1

Hi @ambrt ,

Basically i see that there are 3 servers involved - front, back and core.

The backend server (not the core, but backend) doesn't actually need to be its own server. You simply have to integrate your existing backend API layer with our backend SDK.

My goal would be to Log In user on front end by calling core

The frontend never talks to the core directly. It's always through your backed API layer. Your frontend would call the APIs exposed by our backend SDK, which would then call the core as needed.

Or every time i use verifySession() , a call to core will be made?

No. Session verification doesn't require a call to the core. The way it works is that when the backend process starts, it queries the core once to get the public key used to verify the session. This key is then stored in memory and used for session verification each time.

Now keeping in mind that you have a serverless architecture, each time a request is sent to the backend, a new process would start. This means it would query the core to get the public key each time. However, if you keep the workers "warm", then this problem would be solved.

I'm closing this issue for now, but feel free to reopen to ask more questions. You can even join our discord server to ask questions: https://supertokens.io/discord

from supertokens-website.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.