釣魚術
swift
amplify
AWS
func fetchStatus() {
_ = Amplify.Auth.fetchAuthSession { result in
do {
let session = try result.get()
self.showSignPage = !(session.isSignedIn)
print(self.showSignPage)
} catch {
print("Fetch auth session failed with error - \(error)")
}
}
}