Dan6erbond / sk-auth

Authentication library for use with SvelteKit featuring built-in OAuth providers and zero restriction customization!
MIT License
578 stars 70 forks source link

Allow setting Domain cookie property #70

Open natevaughan opened 2 years ago

natevaughan commented 2 years ago

Allow setting the Domain property on Set-Cookie header value:

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie

My instinct is to add a domain property to AuthConfig and add it to the Set-Cookie header it if defined. I can submit a PR if that would be helpful.