Something went wrong. Try again.
Laravel AT Protocol Client (alpha & unstable)
Something went wrong. Try again.
594 B · 27 lines
PHP
at dev
12345678910111213141516171819202122232425262728<?php
namespace SocialDept\AtpClient\Events;
use Illuminate\Foundation\Events\Dispatchable;use Illuminate\Queue\SerializesModels;use SocialDept\AtpClient\Data\AccessToken;use SocialDept\AtpClient\Enums\AuthType;
class SessionAuthenticated{ use Dispatchable, SerializesModels;
public function __construct( public readonly AccessToken $token, ) {}
public function isOAuth(): bool { return $this->token->authType === AuthType::OAuth; }
public function isLegacy(): bool { return $this->token->authType === AuthType::Legacy; }}