Closed ashokds closed 11 months ago
Please update the label to Question
instead of bug
.
@ashokds take a look at the example iOS app. It shows several examples that you should be able to use or modify. I'm going to close this issue for now, but please do reply with questions if you have any!
Question
What is the new interface for
GTMAppAuthFetcherAuthorization(fromKeychainForName: )
in4.0.0
?Looks like
AuthSessionStore
is the way to go based on ChangeLog. How to create and useKeychainStore
for proper retrieval, need direction to sample-code to find the recommended way to handle code-update?Keychain Store Readme
Details
I'm migrating GTMAppAuth from
2.0.0
to4.0.0
and have following code in my app to retrieve the session info with the keychain name:Relevant section from current podfile.lock after performing the update and clean pods/project build:
Looking at the changelog entry for
v3.0.0
:AuthSessionStore
Are we supposed to use
@objc public func retrieveAuthSession(withItemName itemName: String) throws -> AuthSession {
from the GTMAppAuth/KeychainStore.swift?Yes, please share the snippet to create and handle the
KeychainStore
object. If not, Please guide, which corresponding method to use to retrieve the authorization?The old interface is:
To Reproduce Steps to reproduce the behavior:
v2.0.0
GTMAppAuth pod and use `` interface in the app code say following:'any GTMSessionFetcherAuthorizer' cannot be constructed because it has no accessible initializers
Expected behavior Migration guide from v2.0.0 to v.3.0.0 and v4.0.0 would help in resolution of this error.
Screenshots If applicable, add screenshots to help explain your problem.
Environment
Additional context Swift based App using
COCOAPODS: 1.13.0