I couldn't authenticate user and access the files stored in s3. I have created a dummy user in the amazon cognito user pool
func signInUser() async{
do{
let result = try await Amplify.Auth.signIn(username: "dummy123", password: "admin123")
if result.isSignedIn {
print("user signed in successfully !")
}
else {
print("user not signed in !")
}
}catch let error as AuthError{
print("error while signing in : \(error)")
}catch{
print("unexpected error : \(error)")
}
}