diff --git a/src/Core/Authentication/PassportTrait.php b/src/Core/Authentication/PassportTrait.php new file mode 100644 index 0000000..b5e617b --- /dev/null +++ b/src/Core/Authentication/PassportTrait.php @@ -0,0 +1,25 @@ +getAttribute(Passport::ATTRIBUTE); + } + + public function checkAuth(ServerRequestInterface $request): string|int + { + $identification = $this->authentication($request); + return $identification->getAuthId(); + } +} \ No newline at end of file