install firebase jwt and use token for authenticate

This commit is contained in:
2025-07-16 19:22:19 +03:30
parent cb29022311
commit 89a7eed847
23 changed files with 2737 additions and 15 deletions
@@ -8,15 +8,13 @@ class DabestanihaAuthenticateRequest extends BaseFormRequest
public function shouldContinue(): bool
{
$path = $this->getRoutePath();
return trim($path, '/') === 'dabestaniha/login';
return trim($path, '/') === get_configured_option('login-route');
}
public function rules(): array
{
return [
'token' => ['required'],
'name' => ['nullable'],
'email' => ['nullable'],
];
}
}