Structurevapor 4.114.1Vapor
BasicAuthorization
A basic username and password.
struct BasicAuthorization
A basic username and password.
struct BasicAuthorization
import Vapor
Vapor is a framework for building server applications, APIs and websites in Swift. It provides a safe, performant and scalable foundation for building large complex backends.
protocol Sendable
init(username: String, password: String)
Create a new BasicAuthorization
.
let password: String
The plaintext password
let username: String
The username, sometimes an email address