OAuth2 Authentication with Flutter

120 views
Skip to first unread message

Nick Langan

unread,
Jan 19, 2023, 2:51:32 PM1/19/23
to FatSecret Platform API
Hi there!

We're working to implement OAuth 2.0 with Flutter, and I just wanted to see if anyone had conquered a way to circumvent the invalid signature error that we are getting while calling foods.get and that I've seen others report while trying to follow this particular strategy:


Flutter has an OAuth2 package, so if anyone has gotten that to work, I'd love to hear about it, as well.

If anyone has any suggestions, we would sincerely appreciate it.

Thank you so much!

Sincerely,
Nick Langan

Noah Griffiths

unread,
May 2, 2023, 10:48:09 AM5/2/23
to FatSecret Platform API
Hi Nick,

I encountered the same Flutter and FatSecret implementation on StackOverflow, and haven't had any success with it thus far.

I have a different error however, I'm using foods.search and the code isn't returning any values.

The error: 

I/flutter ( 4624): foods.search
D/EGL_emulation( 4624): app_time_stats: avg=26.16ms min=3.27ms max=233.23ms count=35
I/flutter ( 4624): NoSuchMethodError: The method '[]' was called on null.
I/flutter ( 4624): Receiver: null
I/flutter ( 4624): Tried calling: []("food")

I was wondering if you have yours up and running and whether you would share with me your implementation? 

Yours faithfully,
Noah

Reply all
Reply to author
Forward
0 new messages