# Limits on the hosted login UI

**URL:** <https://community.auth0.com/t/limits-on-the-hosted-login-ui/59263>\
**Category:** Get Help\
**Tags:** login, auth0\
**Created:** [March 11, 2021, 1:25pm UTC](https://community.auth0.com/t/limits-on-the-hosted-login-ui/59263 "2021-03-11T13:25:56Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![janos.kubisch](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/janos.kubisch/32/12805_2.png) [@janos.kubisch](https://community.auth0.com/u/janos.kubisch)\
**Post date:** [March 11, 2021, 1:25pm UTC](https://community.auth0.com/t/limits-on-the-hosted-login-ui/59263/1 "2021-03-11T13:25:57Z")

</div>

Hey 🙂

I was wondering about what kind of request limits apply to the hosted login UI, are those the same as the API limits for the account? Does the requests made by the hosted UI count towards the API limits of the account or are they separate?

I was unable to find information on this in the docs.

Edit:  
Also, is there a login queue to handle bursts on the hosted login?

---

<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:** [March 11, 2021, 8:41pm UTC](https://community.auth0.com/t/limits-on-the-hosted-login-ui/59263/3 "2021-03-11T20:41:47Z")

</div>

Hi @janos.kubisch,

Welcome to the Community!

Here is the rate limit doc:

> **[Authentication API Endpoint Rate Limits](https://auth0.com/docs/troubleshoot/customer-support/operational-policies/rate-limit-policy/authentication-api-endpoint-rate-limits)**
>
> Describes Auth0's rate limit policy when working with Auth0 Authentication API endpoints.

Assuming you are referring to the _/authorize_ endpoint, it looks like it is under the global limit, which is 100 requests/second for paid production tenants, and 300/minute for free tenants.

Here is how errors are handled:

> **[Authentication API Endpoint Rate Limits](https://auth0.com/docs/troubleshoot/customer-support/operational-policies/rate-limit-policy/authentication-api-endpoint-rate-limits)**
>
> Describes Auth0's rate limit policy when working with Auth0 Authentication API endpoints.

---

<div class="post-metadata">

**Author:** ![janos.kubisch](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/janos.kubisch/32/12805_2.png) [@janos.kubisch](https://community.auth0.com/u/janos.kubisch)\
**Post date:** [March 12, 2021, 8:43am UTC](https://community.auth0.com/t/limits-on-the-hosted-login-ui/59263/4 "2021-03-12T08:43:40Z")

</div>

Thanks for the answer Dan!  
So if I understand this correctly, the api rate limits documented here apply to us when we are using the login page hosted by Auth0 as well - and there is no login queue implemented into that page to handle burst load?

This is what I’m talking about:  
 ![Screenshot from 2021-03-12 09-45-00](https://global.discourse-cdn.com/auth0/original/3X/3/c/3ce39165d4404f8a0bee1aa68da25bc1488fb7f4.png)

---

<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:** [March 12, 2021, 4:30pm UTC](https://community.auth0.com/t/limits-on-the-hosted-login-ui/59263/5 "2021-03-12T16:30:40Z")

</div>

That would be an /authorize endpoint call I mentioned in my first response. There isn’t a documented queue that I am aware of. Did you look at the error doc I linked? It directly explains what happens when a rate limit is reached.

---

<div class="post-metadata">

**Author:** ![janos.kubisch](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/janos.kubisch/32/12805_2.png) [@janos.kubisch](https://community.auth0.com/u/janos.kubisch)\
**Post date:** [March 16, 2021, 11:05am UTC](https://community.auth0.com/t/limits-on-the-hosted-login-ui/59263/6 "2021-03-16T11:05:53Z")

</div>

I’ve read the documentation, but it mostly refers to the API usage, and as far as I can tell, it does not elaborate on how the hosted UI handles the limits.

We have looked at what requests are being made to the API during the login flow, and this is what we gathered happens:

1. /authorize and /login is called during the redirection to the hosted UI
2. the hosted UI calls /usernamepassword/login when the user enters credentials and uses the login button
3. there is a /login/callback call
4. the token is retrieved via a call to /oauth/token

If we take 100 people who try to log in at the same second through the hosted UI, this would make 50 of them reach the login page (there are two requests in the 1st point). Let’s assume they type in their credentials and login in 1 second. Let’s also assume that the clients and servers are so fast that the next 3 endpoint gets called immediately, thus in the next second 100/3 = 33 of them get a token.

So, in this case, we would be able to let in around 33 people every two seconds, right?  
Or would only the call to /authorize count towards the limit?

---

<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:** [March 18, 2021, 1:50pm UTC](https://community.auth0.com/t/limits-on-the-hosted-login-ui/59263/7 "2021-03-18T13:50:00Z")

</div>

@janos.kubisch,

> [@janos.kubisch](#):
>
> Or would only the call to /authorize count towards the limit?

That is a valid question. Let me reach out to the team and confirm whether or not each additional request in the /authorize pipeline counts towards the rate limit.

---

<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:** [March 22, 2021, 1:39pm UTC](https://community.auth0.com/t/limits-on-the-hosted-login-ui/59263/8 "2021-03-22T13:39:01Z")

</div>

I can confirm each request would be counted.

The response I got internally was that it is extremely unlikely that you would have a scenario like the one you described unless you were performing a load test or some synthetic behavior.

---

<div class="post-metadata">

**Author:** ![janos.kubisch](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/janos.kubisch/32/12805_2.png) [@janos.kubisch](https://community.auth0.com/u/janos.kubisch)\
**Post date:** [March 22, 2021, 3:08pm UTC](https://community.auth0.com/t/limits-on-the-hosted-login-ui/59263/9 "2021-03-22T15:08:27Z")

</div>

I see, thanks for the help! 🙂

---

<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:** [March 22, 2021, 3:56pm UTC](https://community.auth0.com/t/limits-on-the-hosted-login-ui/59263/10 "2021-03-22T15:56:21Z")

</div>

Let us know if you run into any other questions.

---

<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:** [April 6, 2021, 3:56pm UTC](https://community.auth0.com/t/limits-on-the-hosted-login-ui/59263/11 "2021-04-06T15:56:42Z")

</div>

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