I am trying to load a user photo using Firebase Authorization and Kingfisher library in Swift but receiving the following error:
Kingfisher.KingfisherError.ResponseErrorReason.invalidHTTPStatusCode. Status Code: 403
Here is the code I am using:
if let photoURL = Auth.auth().currentUser?.photoURL {
cell.profilePic.kf.setImage(with: photoURL) { result in
switch result {
case .success(let value):
print(value.image)
print(value.cacheType)
print(value.source)
case .failure(let error):
print(error)
}
}
I successfully get the user email, but cannot figure out why this does not work. Any help would be greatly appreciated.
Thanks
Comments
Post a Comment