samchon / nestia

NestJS Helper Libraries + TypeScript OpenAPI generator
https://nestia.io/
MIT License
1.76k stars 91 forks source link

Issue with assignHeaders and setHeader #824

Closed masterr115 closed 5 months ago

masterr115 commented 5 months ago

Question

Hello, I'm trying to integrate the assignHeaders and setHeader methods, but I'm having errors when compiling for the SDK.

I want to use the token extracted from the login for the rest of the application.

This is my login route

image

This is my interface (ILoginResponse)

image


And I would like to use the header that was taken from the Auth route within other methods, such as creating a group

Group creation route

image

Group creation interface response

image

How could this integration be done?


ERROR:

image

samchon commented 5 months ago

Don't upload screenshot, but a reproducible repo please.

masterr115 commented 5 months ago

Don't upload screenshot, but a reproducible repo please.

I've just created gist for it with these files.

https://gist.github.com/masterr115/799424fd6be54f0a239243d9e9dd89e8