 
         if new {
             guard let request = request else {
-                throw AuthError.noRequest
+                throw AuthenticationError.notAuthenticated
             }
 
             return try T.init(subject: subject, request: request)

    init(subject: String, request: Request) throws
}

final class AuthenticationCollection {
    
    typealias AuthenticationSubject = Entity & Authenticatable & JWTInitializable & NodeConvertible & Persistable

import Node
import JWT
import AuthProvider
import CTLS
import Crypto

enum SessionType: String, TypesafeOptionsParameter {
    case customer
