# Class LoginRequirement (1.18.0)

1.18.0 (latest) 1.17.0 1.16.0 1.15.0 1.14.2 1.13.0 1.12.1 1.11.5 1.10.0 1.9.4 1.8.1 1.7.1 1.6.0 1.5.3 1.4.1 1.3.3 1.2.1 1.1.5 1.0.2 0.2.0 0.1.0

    LoginRequirement(value)

Methods to restrict access to a URL based on login status.

| ## Enums ||
|---|---|
| **Name** | **Description** |
| `LOGIN_UNSPECIFIED` | Not specified. \`LOGIN_OPTIONAL\` is assumed. |
| `LOGIN_OPTIONAL` | Does not require that the user is signed in. |
| `LOGIN_ADMIN` | If the user is not signed in, the \`auth_fail_action\` is taken. In addition, if the user is not an administrator for the application, they are given an error message regardless of \`auth_fail_action\`. If the user is an administrator, the handler proceeds. |
| `LOGIN_REQUIRED` | If the user has signed in, the handler proceeds normally. Otherwise, the auth_fail_action is taken. |