Composer Update

This commit is contained in:
2022-06-14 16:55:53 +02:00
parent d8605597f6
commit 6bbf517196
9 changed files with 211 additions and 339 deletions

View File

@@ -27,8 +27,9 @@ class Settings {
private string $mailFooter;
private array $allowedExtensions;
public function getJwtSecret(): string {
return $this->jwtSecret;
public function getJwtKey(): \Firebase\JWT\Key {
// TODO: allow the use of other JWT algorithms (e.g. RS256)
return new \Firebase\JWT\Key($this->jwtSecret, "HS256");
}
public function isInstalled(): bool {