# Auth token for an unauthenticated user?

**URL:** <https://community.auth0.com/t/auth-token-for-an-unauthenticated-user/55256>\
**Category:** Get Help\
**Created:** [December 22, 2020, 8:09pm UTC](https://community.auth0.com/t/auth-token-for-an-unauthenticated-user/55256 "2020-12-22T20:09:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![knic27](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/knic27/32/25307_2.png) [@knic27](https://community.auth0.com/u/knic27)\
**Post date:** [December 22, 2020, 8:09pm UTC](https://community.auth0.com/t/auth-token-for-an-unauthenticated-user/55256/1 "2020-12-22T20:09:35Z")

</div>

I have a use case where I want to make available certain endpoints on my API available to unauthenticated users for a certain period of time, e.g. half an hour or 24 hours. I was wondering if was possible and how I might create an auth token for them through Auth0.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [December 28, 2020, 8:24pm UTC](https://community.auth0.com/t/auth-token-for-an-unauthenticated-user/55256/3 "2020-12-28T20:24:58Z")

</div>

Hi @knic27,

It doesn’t sound like something we support out of the box. There needs to be some sort of unique identifier for a user to create a unique token. It is possible to create a client dynamically on behalf of each user and issue a client credential, but this is going to be messy.

This sounds vaguely like you are trying to secure endpoints for a public client with no users, which [isn’t really possible](https://security.stackexchange.com/questions/187149/secure-rest-api-without-a-user-registration).

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [January 21, 2021, 7:01pm UTC](https://community.auth0.com/t/auth-token-for-an-unauthenticated-user/55256/4 "2021-01-21T19:01:12Z")

</div>

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