Domain Documentation

Class Verified​User​Entity

public final class VerifiedUserEntity  

User information in Payload of JWT.

APIs that require Payload information to complete processing are automatically expanded by Middleware and relayed to the controller. See AuthenticateThenExpandPayloadMiddleware for details.

Note

SessionPayload is a struct and has an exp that does not require a relay. I thought I should have another class.

Nested Types

VerifiedUserEntity.Key

Initializers

init(id:​username:​token:​)

public init( id: Int?, username: String?, token: String?) 

Properties

id

public var id: Int? 

Same as SessionPayloads id.

username

public var username: String? 

Same as SessionPayloads username.

token

public var token: String? 

JWT used for authentication.