Comments (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)
- Calling session refresh on sign out (due to 401) throws error when refresh API blocked with chrome HOT 1
- doesSessionExists should check the front-token validity and refresh if necessary HOT 6
- Do not rely on front-token if st-access-token is available
- Restructure/split up fetch.ts
- Infinite session refresh HOT 5
- Add refresh token to refresh request in header based auth even if access token is missing HOT 1
- Allow disabling interceptors for user API calls HOT 3
- make setting headers in request object consistent
- Support Module Augmentation in TypeScript
- XHR interceptor not respecting axios interceptor HOT 8
- Axios interceptor uses stale access token after refresh
- Using multiple auth providers at the same time can cause an infinite refresh loop
- Fetch interceptor breaks fetch api. HOT 1
- Allow interception for different ports on the same domain HOT 1
- Empty response header for st-access-token and st-refresh-token are removed by Vercel proxy HOT 2
- Fetch interceptor causing error in development when using an ad blocker HOT 3
- Do not store tokens in frontend cookies by default in header based auth
- localStorage Safari Security Error when users have "Block Cookies" setting enabled HOT 5
- Support interception if request made to relative path HOT 1
- Add an e2e test to simulate a cookie domain change
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from supertokens-website.