Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions Sources/OAuthKit/Extensions/Collection+Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Collection+Extensions.swift
//
//
// Created by Kevin McKee on 5/29/24.
// Created by Kevin McKee
//

import Foundation
Expand All @@ -11,7 +11,5 @@ extension Collection {

/// Returns true if the collection is not empty.
@inlinable
public var isNotEmpty: Bool {
!isEmpty
}
public var isNotEmpty: Bool { !isEmpty }
}
4 changes: 2 additions & 2 deletions Sources/OAuthKit/Extensions/Date+Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Date+Extensions.swift
//
//
// Created by Kevin McKee on 5/30/24.
// Created by Kevin McKee
//

import Foundation
Expand All @@ -15,6 +15,6 @@ public extension Date {
/// - rhs: the right hand date
/// - Returns: the time interval between the two dates.
static func - (lhs: Date, rhs: Date) -> TimeInterval {
return lhs.timeIntervalSinceReferenceDate - rhs.timeIntervalSinceReferenceDate
lhs.timeIntervalSinceReferenceDate - rhs.timeIntervalSinceReferenceDate
}
}
2 changes: 1 addition & 1 deletion Sources/OAuthKit/Extensions/String+Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation

extension String {

/// Denotes an empty string.
/// Denotes an empty string literal.
static let empty = ""

/// Returns the SHA-256 Digest for this string instance
Expand Down
2 changes: 1 addition & 1 deletion Sources/OAuthKit/OAuth+Authorization.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ extension OAuth {
/// The issued access token.
public let token: Token

/// Initializer
/// Creates an authorization that can be stored inside the keychain.
/// - Parameters:
/// - issuer: the provider ID that issued the authorization.
/// - token: the access token
Expand Down
10 changes: 5 additions & 5 deletions Sources/OAuthKit/OAuth+GrantType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ extension OAuth {
public var rawValue: String {
switch self {
case .authorizationCode:
return "authorization_code"
"authorization_code"
case .clientCredentials:
return "client_credentials"
"client_credentials"
case .deviceCode:
return "device_code"
"device_code"
case .pkce:
return "pkce"
"pkce"
case .refreshToken:
return "refresh_token"
"refresh_token"
}
}
}
Expand Down