TTC
Theo's Typesafe CultIberius
React To Next header cookies/Token
Hi, for some context. The backend is in python frontend in react and the auth system works by going
Frontend clicks a link and gets redirected to the backend -> backend redirects to discord -> discord to frontend and the session token gets saved on the frontend. by using credentials: "include" in axios the backend retrieves the session token in any call I make to the backend.
is there a more optimal way of doing this? (don't suggest next-auth cuz its bad)
if this method is ok, is there a way to do the same in nextJs? because after porting this doesn't work in any API call I make to the backend, since the token isn't there.
is there a way to bind this session token into the request header? Legit there are no guides anywhere on this..
21KMembers
View on DiscordWant results from more Discord servers?
More Posts"Weird" characters are visible in VSCode Git Bash terminal output (like this: `←[90m` )Hello, fellow theoists! I'm watching a new video from [Theo](https://youtu.be/d5x0JCZbAJs?t=2343), aNext Auth Drizzle Adapter does not include extra columns (fields)`auth.ts`
```ts
providers: [
GoogleProvider({
clientId: env.GOOGLE_CLIENT_ID,
clienuseUploadthing hook is slowHi, I recently started using Uploadthing. My use case involves attaching images to messages in my chCaching getSignedUrl without DB?In my tRPC using app, I store image files on Cloudflare R2. The client browse these images by listi