I'm trying to load my JWT during application configuration
func configure(_ application: Application) async throws {
// Value of type 'NonBlockingFileIO' has no member 'collectFile'
var buffer = try await application.fileio.collectFile(at: "")
let pem = buffer.readString(length: buffer.readableBytes)!
try application.jwt.signers.use(.es256(key: .private(pem: pem)), kid: "ECDSA")
}
How would one approach this?