# Set an expiration for Signup URL

**URL:** <https://community.auth0.com/t/set-an-expiration-for-signup-url/188325>\
**Category:** Get Help\
**Tags:** signup-prompt-new-experience, login-experience\
**Created:** [June 24, 2025, 5:00am UTC](https://community.auth0.com/t/set-an-expiration-for-signup-url/188325 "2025-06-24T05:00:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![t.fukao](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/t.fukao/32/61052_2.png) [@t.fukao](https://community.auth0.com/u/t.fukao)\
**Post date:** [June 24, 2025, 5:00am UTC](https://community.auth0.com/t/set-an-expiration-for-signup-url/188325/1 "2025-06-24T05:00:25Z")

</div>

I generate a URL for a page where users can directly sign up by adding the `prompt=login&screen_hint=signup`parameter to the `/authorize` endpoint URL.  
[reference](https://auth0.com/docs/authenticate/login/auth0-universal-login/universal-login-vs-classic-login/universal-experience#signup)

Can I set an expiration date for this URL?  
I need to prevent users from signing up with an expired URL.

That’s an important restriction from a security perspective.

---

<div class="post-metadata">

**Author:** ![remus.ivan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/remus.ivan/32/68771_2.png) [@remus.ivan](https://community.auth0.com/u/remus.ivan)\
**Post date:** [June 25, 2025, 8:22pm UTC](https://community.auth0.com/t/set-an-expiration-for-signup-url/188325/3 "2025-06-25T20:22:07Z")

</div>

Hi @t.fukao,

Welcome back to the Auth0 Community and thank you for your post!

The `/authorize` is designed to initiate an authentication/authorization flow and it is not natively created to support adding an expiration date, so unfortunately there is no out of box solution to set an expiry time to the URL itself.

However though, I totally understand your perspective, so the recommended way of implementing a signup flow that has a set expiration time is through [Sending Email Invitations for Application Signup](https://auth0.com/docs/customize/email/send-email-invitations-for-application-signup).

It is mentioned in the outlined documentation to:

> Specify the lifespan of the invitation link. Use the `ttl_sec` parameter to set how long the invitation link will remain active. The `ttl_sec` parameter should align with your relevant security concerns. The link is a one-time use, so once the user has set their password, it is not vulnerable to reuse.

Additional information on setting this up can be found under this [Knowledge Article](https://community.auth0.com/t/send-email-invitations-for-application-signup-additional-information/141010).

I hope this helps!  
Best regards,  
Remus

---

<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:** [July 9, 2025, 8:22pm UTC](https://community.auth0.com/t/set-an-expiration-for-signup-url/188325/4 "2025-07-09T20:22:21Z")

</div>

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