# Custom Auth is not working

**URL:** <https://discourse.nodered.org/t/custom-auth-is-not-working/77233>\
**Category:** General\
**Tags:** security\
**Created:** [4 April 2023 07:57 UTC](https://discourse.nodered.org/t/custom-auth-is-not-working/77233 "2023-04-04T07:57:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sabir](https://avatars.discourse-cdn.com/v4/letter/s/b5e925/32.png) [@sabir](https://discourse.nodered.org/u/sabir)\
**Post date:** [4 April 2023 07:57 UTC](https://discourse.nodered.org/t/custom-auth-is-not-working/77233/1 "2023-04-04T07:57:30Z")

</div>

I implemented the custom authentication, when I login with correct credentials It just refresh it and keep me to the login page  
/auth/token is responding with access token and token type  
[http://localhost:1880/settings?\_=1680593842812](http://localhost:1880/settings?_=1680593842812) it is sending unauthorized.

I have attach the adminAuth

 ![Screenshot from 2023-04-04 13-20-42](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/d/ad5600156470ff32845ee3f74799194d5c2e5b13.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [3 June 2023 07:57 UTC](https://discourse.nodered.org/t/custom-auth-is-not-working/77233/2 "2023-06-03T07:57:48Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
