feature: Adds login support.

This commit is contained in:
greysoh 2024-12-22 11:07:38 -05:00
parent af37abf075
commit bbad26b686
Signed by: imterah
GPG key ID: 8FA7DD57BA6CEA37
5 changed files with 176 additions and 16 deletions

View file

@ -0,0 +1,15 @@
package users
import "os"
var (
signupEnabled bool
unsafeSignup bool
forceNoExpiryTokens bool
)
func init() {
signupEnabled = os.Getenv("HERMES_SIGNUP_ENABLED") != ""
unsafeSignup = os.Getenv("HERMES_UNSAFE_ADMIN_SIGNUP_ENABLED") != ""
forceNoExpiryTokens = os.Getenv("HERMES_FORCE_DISABLE_REFRESH_TOKEN_EXPIRY") != ""
}