# Token length and guest logins

**URL:** <https://community.auth0.com/t/token-length-and-guest-logins/140695>\
**Category:** Get Help\
**Tags:** user-invitation, user-management\
**Created:** [August 8, 2024, 4:05pm UTC](https://community.auth0.com/t/token-length-and-guest-logins/140695 "2024-08-08T16:05:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pixelworlds](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/pixelworlds/32/59093_2.png) [@Pixelworlds](https://community.auth0.com/u/Pixelworlds)\
**Post date:** [August 8, 2024, 4:05pm UTC](https://community.auth0.com/t/token-length-and-guest-logins/140695/1 "2024-08-08T16:05:03Z")

</div>

I have a scenario where my company has existing functionality and I’m wondering if Auth0 has any way for us to replicate that functionality.

What we are currently doing is generating a relatively short token that can be printed on a physical piece of paper and manually typed in on our platform to login. The login, however, isn’t a real login. It is a limited guest session that can only be used for specific tasks like making a payment.

So my questions are

1. Is there any any functionality in Auth0 to issue a short token that can be used to login?
2. We don’t necessarily need the account being logged into to be a guest account - what we are looking for is a way to allow someone access to the platform for a limited period and with a very limited scope. Is there a corresponding type of functionality available in Auth0?

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [August 13, 2024, 5:35pm UTC](https://community.auth0.com/t/token-length-and-guest-logins/140695/3 "2024-08-13T17:35:41Z")

</div>

Hi @Pixelworlds,

Welcome to the Auth0 Community!

> [@Pixelworlds](#):
>
> Is there any any functionality in Auth0 to issue a short token that can be used to login?

Yes! Auth0 can issue short-lived access tokens used to log in. Once the access token has expired, it will be invalid for future use.

I recommend checking out the resources below to learn more:

- [Access Tokens](https://auth0.com/docs/secure/tokens/access-tokens)
- [Update Access Token Lifetime](https://auth0.com/docs/secure/tokens/access-tokens/update-access-token-lifetime)
- [Call Your API Using the Authorization Code Flow](https://auth0.com/docs/get-started/authentication-and-authorization-flow/authorization-code-flow/call-your-api-using-the-authorization-code-flow)

> [@Pixelworlds](#):
>
> We don’t necessarily need the account being logged into to be a guest account - what we are looking for is a way to allow someone access to the platform for a limited period and with a very limited scope. Is there a corresponding type of functionality available in Auth0?

Yes, there is! For this to work, the user must log in to get issued a short-lived access token. In the login request, you can specify [API `scopes`](https://auth0.com/docs/get-started/apis/scopes/api-scopes), which defines the permissions the user has access to.

Let us know if you have any additional questions.

Thanks,  
Rueben

---

<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:** [August 27, 2024, 5:36pm UTC](https://community.auth0.com/t/token-length-and-guest-logins/140695/4 "2024-08-27T17:36:06Z")

</div>

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