Open Qodestackr opened 3 weeks ago
Hi @Qodestackr,
A few questions for you:
new StreamVideoClient
is created? Is it possible that you're calling this constructor server-side, maybe in an API route?new StreamVideoClient
in a server component (component not marked with "use client"
)?Generally, there should be no need to create StreamVideoClient
server-side.
For an example of using video-react-sdk
with Next.js and NextAuth, check out our sample Next.js application, especially these two places:
[1] Authenticating with NextAuth: https://github.com/GetStream/stream-video-js/blob/main/sample-apps/react/react-dogfood/pages/auth/signin.tsx
[2] Generating a token for StreamVideoClient
from NextAuth session: https://github.com/GetStream/stream-video-js/blob/main/sample-apps/react/react-dogfood/lib/getServerSideCredentialsProps.ts
Which package/packages do you use?
@stream-io/video-react-sdk
@stream-io/video-react-native-sdk
@stream-io/video-client
Describe the bug A clear and concise description of what the bug is.
Noob here trying to implement what JS mastery did but using NextAuth in prod alongside your tools have brought wiered bugs. Kindly let me know any changes to sdks that I might not be aware of.