at the beginning of the week, i said i would do some fun coding and work on browserflow cloud
that was the plan
and then i figured i should integrate with google sheets so that i can write to it after a flow is done running in the cloud
this isn't strictly necessary b/c i can just have people download a csv or access the results via an api endpoint, but i figured it'd be nice
three days later, i am so freaking tired of trying to figure this out
after many, many hours, i got oauth working
...and then realized that the library i used doesn't support using the access token from a server (offline access)
so i spent all of today rewriting that implementation so that i'm getting access for both the client and the server
thought i had it all figured out and was excited to move onto the more interesting part of writing the data to google sheets
and then i realized just now that i can't automatically refresh the access token when it expires inside the chrome extension without writing yet another freaking oauth handler because chrome extensions are special and the normal google javascript auth apis don't work inside them
i could honestly write a short book explaining the nuances of trying to implement oauth for chrome extensions because i've fallen into every pitfall
end me