Raz Buchnik

Results 15 comments of Raz Buchnik

How to send 2 cookies in one response?

So how to respond with accessToken + csrfToken + refreshToken in one response?

> Something like this? I may be missing something completely. I have never used an API that uses Set-Cookie, so I have no experience with it. Do you have any...

@kbolino The CSRF token will be stored in a cookie - without HttpOnly flag - and then be sent in the header after read from JS. The HttpOnly flag is...

I check in my server using hmac crypto mechanism - the user provides his CSRF token in the headers (after reading from the cookie explicitly), then the server takes the...

> Would it make sense to add `cookies` to the OAS `response` object? Why not? (Response headers to be precise*)

I came across as well. How to fix this? By fix I mean that I want to keep the chaining of the schema, like merging another schema or do anything...

I started from Zod then generated the OAS schema and then the TypeScript types.

Also, Select auto intellisense with VSCode is extremely slow.