From 8bcea5d05f03f96f95060f11fb0c697811671cf5 Mon Sep 17 00:00:00 2001 From: Michael Darko Date: Mon, 22 Nov 2021 18:46:16 +0000 Subject: [PATCH] :sparkles: added leaf auth config --- src/Auth.php | 8 ++++++++ src/Auth/Core.php | 1 + 2 files changed, 9 insertions(+) diff --git a/src/Auth.php b/src/Auth.php index a4f965e..45a4a6c 100755 --- a/src/Auth.php +++ b/src/Auth.php @@ -37,6 +37,14 @@ public static function autoConnect(): void Auth\Core::autoConnect(); } + /** + * Set auth config + */ + public static function config($config, $value = null) + { + return Auth\Core::config($config, $value); + } + /** * Simple user login * diff --git a/src/Auth/Core.php b/src/Auth/Core.php index 1bd96bb..4506302 100644 --- a/src/Auth/Core.php +++ b/src/Auth/Core.php @@ -48,6 +48,7 @@ class Core "GUARD_LOGIN" => "/auth/login", "GUARD_REGISTER" => "/auth/register", "GUARD_HOME" => "/home", + "GUARD_LOGOUT" => "/auth/logout", "SAVE_SESSION_JWT" => false, "TOKEN_LIFETIME" => null, "TOKEN_SECRET" => "@_leaf$0Secret!"