# Credential unauthorized

**URL:** <https://community.n8n.io/t/credential-unauthorized/12229>\
**Category:** Questions\
**Tags:** core\
**Created:** [March 16, 2022, 4:56am UTC](https://community.n8n.io/t/credential-unauthorized/12229 "2022-03-16T04:56:19Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![pemontto](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/pemontto/32/2684_2.png) [@pemontto](https://community.n8n.io/u/pemontto)\
**Post date:** [March 16, 2022, 10:49am UTC](https://community.n8n.io/t/credential-unauthorized/12229/3 "2022-03-16T10:49:42Z")

</div>

I had to workaround this for my backup workflow. Some `/rest` endpoints now need a JWT in addition to basic auth. You’ll need to do a single auth request before this, then add a `Cookie` header in subsequent requests. The JWT expiry seems to be a week, so you should only have to do it once per workflow rather than before each request.

---

_[View the full topic](https://community.n8n.io/t/credential-unauthorized/12229)._
