Skip to content

Commit

Permalink
✨ added leaf auth config
Browse files Browse the repository at this point in the history
  • Loading branch information
mychidarko committed Nov 22, 2021
1 parent 105ad34 commit 8bcea5d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down
1 change: 1 addition & 0 deletions src/Auth/Core.php
Original file line number Diff line number Diff line change
Expand Up @@ -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!"
Expand Down

0 comments on commit 8bcea5d

Please sign in to comment.