Structure
Request.Authentication
Request helper for storing and fetching authenticated objects.
struct Authentication
Topics
Instance Methods
func get<A>(A.Type) -> A?Returns the authenticated instance of the supplied type.func has<A>(A.Type) -> BoolReturnstrueif the type has been authenticated.func login<A>(A)Authenticates the supplied instance for this request.func logout<A>(A.Type)Unauthenticates an authenticatable type.func require<A>(A.Type) throws -> AReturns an instance of the supplied type. Throws if no instance of that type has been authenticated or if there was a problem.