-
Hello, i am having issues with adding http header to trpc client. The basic documentation on https://trpc.io/docs/client/vanilla/setup doesnt work. |
Beta Was this translation helpful? Give feedback.
Answered by
nezi311
Aug 7, 2024
Replies: 1 comment
-
nvm, figured it out.
returns an signal TrpcHeaders which we can set on . |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
nezi311
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nvm, figured it out.
returns an signal TrpcHeaders which we can set on .
TrpcHeaders.set({ Authorization:
Bearer ${localStorage.getItem('token')}});