Move OAuthRefreshAccessTokenRequest to Feedly module.

This commit is contained in:
Brent Simmons
2024-04-25 19:45:03 -07:00
parent 4d1ac9ad4b
commit 2e6ce552b9

View File

@@ -1,30 +0,0 @@
//
// OAuthAcessTokenRefreshing.swift
// Account
//
// Created by Kiel Gillard on 4/11/19.
// Copyright © 2019 Ranchero Software, LLC. All rights reserved.
//
import Foundation
import Web
import Feedly
/// Models section 6 of the OAuth 2.0 Authorization Framework
/// https://tools.ietf.org/html/rfc6749#section-6
public struct OAuthRefreshAccessTokenRequest: Encodable, Sendable {
public let grantType = "refresh_token"
public var refreshToken: String
public var scope: String?
// Possibly not part of the standard but specific to certain implementations (e.g.: Feedly).
public var clientID: String
public var clientSecret: String
public init(refreshToken: String, scope: String?, client: OAuthAuthorizationClient) {
self.refreshToken = refreshToken
self.scope = scope
self.clientID = client.id
self.clientSecret = client.secret
}
}