Comments (3)
Hello @graysonhicks 👋🏻
Great to hear that you liked the auth experience, even if this plugin is mainly focused on CSR until now :) Happy to say that updating this plugin to fully leverage the SSR capabilities of Clerk v3 that was released two weeks ago was on our roadmap already; the actual implementation would be starting next week.
I think you're correct; the final solution could look very similar to @clerk/nextjs
, but I'd like to explore how we can handle the "interstitial" page. When we detect that a JWT is expired (among other edge cases), we use this interstitial page to refresh the JWT and then reload the page. In the @clerk/nextjs
to ensure no user logic runs before we get a fresh JWT, the interstitial page is thrown by middleware (withServerSideAuth
or withAuth
in _middleware
functions) before the application does any processing. (Please note that we have plans to replace this logic soon.)
It'd be great if you could give me a couple of days to run some tests internally and get back to you once I can share more details about the above.
We always aim to provide the best possible DX, so could you please share the kind of public API (HOC vs. callback, and possible naming) you think would feel more natural to a Gatsby user? I believe you are just the right person to ask :)
Gatsby is fantastic and we're more than happy to work on this plugin again
from javascript.
@nikosdouvlis Awesome to hear! I'm going to share this with the OSS team and will get you some feedback.
from javascript.
I think a minimal gatsby site using the Clerk plugin would be a good first step. Maybe this could be a good place to do that on a branch. That would make npm link
easy to use for testing. @pieh
from javascript.
Related Issues (20)
- Node SDK: `verifyToken` function has wrong signature HOT 1
- Node SDK: `createUser` function missing `createdAt` property HOT 1
- Rendering UserProfilePage fails if UserProfileLink is also used HOT 2
- Endless loop of 401 errors with Remix HOT 5
- Clerk Next.js not edge ready HOT 2
- Clerk doesn't follow `redirect_url` search parameter when refreshing page
- Install clerk package error with pnpm HOT 4
- clerk-expo requires react-dom HOT 2
- `mountSignUp` not loading the locales HOT 11
- [nextjs app router] `ClerkProvider` breaks 404 routing HOT 10
- ClerkProvider + auth + everything not compatible with next PPR (next 14) HOT 4
- Unable to sign-up, turnstile not loaded in cors-friendly way HOT 2
- Infinite Redirect Loop When Home URL is current URL HOT 5
- Infinite redirect loop on same-domain deployments HOT 4
- @clerk/nextjs: DEPRECATION WARNING: "frontendApi" is deprecated and will be removed in the next major release. Use `publishableKey` instead. HOT 3
- Router reloading causes race condition with login flow HOT 2
- `SignInButton` `SignUpButton` `redirectUrl` doesn't respect `basePath` HOT 1
- Wrapping `redirect` in `ClerkProvider` leads to spurious redirect HOT 1
- Getting an issue "_expoModulesCore.requireOptionalNativeModule is not a function" once "ClerkProvider" imported inside an Expo App ) HOT 3
- Clerk components are not rendering on Remix Run + Vite HOT 9
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 javascript.