avant
Explore posts from serversDIAdiscord.js - Imagine an app
•Created by avant on 9/20/2024 in #djs-questions
Discord OpenID != Google OpenID?
I KNOW I CAN USE ACCESS_TOKEN, this is specifically about openid
(parentheses mean "or", profile or email)
Google
Scopes: openid, userinfo.profile (userinfo.email)
Code exchange response: access_token, id_token, etc
id_token: has name (email)
Discord
Scopes: openid, identify (email)
Code exchange response: access_token, id_token, etc
id_token: does not have name (email)
My fault? Just how discord openid works?
4 replies
HTTP trip, custom backend
I was reading about this main idea of SSR, that it skips one step by fetching data and sending it from the backend instead of frontend
So what if I want to have my own backend, then when route changes my
createServerData$
sends a request to my other backend instead of straight to database and thats an additional trip (? if I got it right)
So the question is
If both SolidStart project and my custom Rest Api are on the same server, but different port, is it a big deal? Should I use SolidStart as my main backend if I want it to be as fast as possible?
Thank you2 replies
Where to protect SolidStart routes?
I tried layouts, but it loads data only once per page if I'm right, so if user gets logged out it doesn't react
I tried middleware like in here https://start.solidjs.com/advanced/middleware, but it didn't re-load either, so am I doing something wrong (I'm not the sharpest tool) or is there a better way?
2 replies
Suspense
Can someone explain the part on why I shouldn't jump into using it? I don't understand
https://www.solidjs.com/tutorial/async_suspense
Thank you
2 replies