Vapor Documentation

Protocol Session​Authenticatable

public protocol SessionAuthenticatable: Authenticatable  

Models conforming to this protocol can have their authentication status cached using SessionAuthenticator.

%777 SessionAuthenticatable SessionAuthenticatable Authenticatable Authenticatable SessionAuthenticatable->Authenticatable

Conforms To

Authenticatable

Capable of being authenticated.

Requirements

Session​ID

associatedtype SessionID: LosslessStringConvertible

Session identifier type.

session​ID

var sessionID: SessionID  

Unique session identifier.