Hi, I am trying to authorise with FinanceKit, but getting "Process is not entitled" error,
func requestForFinanceDataAuthorizations() async {
let store = FinanceStore.shared
guard FinanceStore.isDataAvailable(.financialData) else {
// No meaningful action can be performed
return
}
do {
let authStatus = try await store.requestAuthorization()
guard authStatus == .authorized else {
// User did not grant access to financial data, stop here
return
}
} catch {
print(error)
}
}
can you please help me what I am doing wrong?