-
-
- );
-}
-
function createAuthSettingsForm(opts: {
config: () => Config;
values: () => AuthConfigProxy;
@@ -394,7 +377,7 @@ function AuthSettingsForm(props: {
{buildOptionalIntegerFormField({
placeholder: `${60 * 60}`,
label: () => (
-
+
Tokens older than this TTL are considered invalid. A new
AuthToken can be minted given a valid refresh Token.
@@ -406,7 +389,7 @@ function AuthSettingsForm(props: {
{buildOptionalIntegerFormField({
placeholder: `${30 * 24 * 60 * 60}`,
label: () => (
-
+
Refresh tokens older than this TTL are considered invalid.
A refresh token can be renewed by users logging in again.
@@ -427,10 +410,7 @@ function AuthSettingsForm(props: {
{buildOptionalBoolFormField({
label: () => (
-
+
When disabled new users will only be able to sign up using
OAuth. Existing users can continue to sign in using
password-based auth.
@@ -444,7 +424,7 @@ function AuthSettingsForm(props: {
integer: true,
placeholder: "8",
label: () => (
-
+
Minimal length for new passwords. Does not affect existing
registrations unless users choose to change their
password.
@@ -456,7 +436,7 @@ function AuthSettingsForm(props: {
{buildOptionalBoolFormField({
label: () => (
-
+
Passwords must contain both, upper and lower case
characters. Does not affect existing registrations unless
users choose to change their password.
@@ -468,7 +448,7 @@ function AuthSettingsForm(props: {
{buildOptionalBoolFormField({
label: () => (
-
+
Passwords must contain digits. Does not affect existing
registrations unless users choose to change their
password.
@@ -480,7 +460,7 @@ function AuthSettingsForm(props: {
{buildOptionalBoolFormField({
label: () => (
-
+
Passwords must contain special, i.e., non-alphanumeric
characters. Does not affect existing registrations unless
users choose to change their password.
@@ -686,8 +666,32 @@ export function AuthSettings(props: {
);
}
-function L(props: { children: JSX.Element }) {
- return