What is this error, please guide no material found anywhere on google so far. Below is my code which is giving error:
if GIDSignIn.sharedInstance().hasAuthInKeychain() == false {
GIDSignIn.sharedInstance().signIn()
} else {
if let user = GIDSignIn.sharedInstance().currentUser {
service.authorizer = user.authentication.fetcherAuthorizer()
fetchEvents()
} else {
GIDSignIn.sharedInstance().signInSilently()
}
}
Two errors coming:
Value of type 'GIDSignIn' has no member 'hasAuthInKeychain'
Value of type 'GIDSignIn' has no member 'signInSilently'
Please check the GIDSignIn
version you are using. From v5.0.0
:
signInSilently
has been replaced with restorePreviousSignIn
.
hasAuthInKeychain
has been replaced with hasPreviousSignIn
.
Reference: https://developers.google.com/identity/sign-in/ios/release
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.