MemberSessionState
in package
FinalYes
Minimal tenant-bound session credentials; authorization is always loaded afresh.
Table of Contents
Methods
- eligible() : bool
- Check account states allowed to authenticate.
- fromMember() : array<string|int, mixed>
- Create a minimal credential envelope without profile or permission data.
- matches() : bool
- Compare the credential epoch and current account eligibility.
- tenantId() : string|null
- Return the immutable tenant identifier; missing tenant context fails closed.
Methods
eligible()
Check account states allowed to authenticate.
public
static eligible(Member $member) : bool
Parameters
- $member : Member
Return values
boolfromMember()
Create a minimal credential envelope without profile or permission data.
public
static fromMember(Member $member) : array<string|int, mixed>
Parameters
- $member : Member
Return values
array<string|int, mixed>matches()
Compare the credential epoch and current account eligibility.
public
static matches(mixed $state, Member $member) : bool
Parameters
- $state : mixed
- $member : Member
Return values
booltenantId()
Return the immutable tenant identifier; missing tenant context fails closed.
public
static tenantId() : string|null