一个小型 Swift Package,封装了 OAuthSwift 和 KeychainAccess,用于验证 Google API,同时自动将令牌保存到钥匙串中。
您可以在此处查看文档。 欲了解更多信息,您还可以查看使用此库的 SwiftBeanCountSheetSyncApp。
此软件包支持 Swift Package Manager,因此只需在您的 Package.swift 中添加一个依赖项即可
.package(url: "https://github.com/Nef10/GoogleAuthentication.git", .upToNextMajor(from: "X.Y.Z")),