How to pass accessToken to ApolloClient in NextjsApp Router ? #5219
awkward-minion
started this conversation in
General
Replies: 1 comment 9 replies
-
Hi, there's no out-of-the-box support for this scenario yet. Our SDK is either for client or server at the moment. Maybe you can implement a storage layer that can be accessed by both the client and server. @wangsijie Any other ideas? |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Logto provides helpers to access user info and to fetch accessToken in serverside.
But the application im working on right is using best of both worlds server side and client side (RSC &SSR) components.
Is there any way I can provide accessToken to ApolloClient request headers on client side?
Beta Was this translation helpful? Give feedback.
All reactions