import Vapor

struct KeycloakCallbackBody: Content {
    let code: String
    let clientId: String
    let clientSecret: String
    let redirectURI: String
    let grantType: String = "authorization_code"
    
    static var defaultContentType: HTTPMediaType = .urlEncodedForm
    
    enum CodingKeys: String, CodingKey {
        case code
        case clientId = "client_id"
        case clientSecret = "client_secret"
        case redirectURI = "redirect_uri"
        case grantType = "grant_type"
    }
}
