Nextjs auth0 testing from local

Hey! How are you?

I am using nextjs auth0 library and I want to know if there is a way to test an application running in stating environmetn with nextjs API secured by cookies set by the former library from localhost?

Meaning, my site is under and set me a cookie so I can login there. I want that from localhost can log into and access the content of its /api (nextjs api).