News for hackers. Stuff that matters.

tayleeganj

LMAO that Uber stunt is illegal and kinda exploitative
Re:CSS Utility Classes and “Separation of Concerns” (2017) on Saturday November 16, 2019 @04:04PM (#21554934)
This just seems primitive to me, use a UI framework and make ur life easier...
Re:America’s largest milk producer files for bankruptcy on Tuesday November 12, 2019 @08:09PM (#21520159)
they just add Vit D right is that so bad?
Re:Ask HN: Who wants to be hired? (November 2019) on Sunday November 03, 2019 @06:49PM (#21437630)
btw your resume is way too long, keep it to one page.
Re:Ask HN: What do you automate in your life and work? on Monday October 28, 2019 @12:37PM (#21378532)
nice, looks pretty cool
node
have you looked at CDK?
interesting. yeah I'm definitely proxiying all API calls through my own gateway. and yeah I'll have to run some tests.
So I've got a site on S3 Cloudfront. I have an API gateway origin. I need to call an external API. The auth works by constructing a JWT, POSTing it to a token endpoint, and including that access token in requests to the API. I need a way to cache the access token.

1. Call API with Lambda proxy with the access token stored as a global variable outside the handler. Would be reused but like article mentions not guaranteed and can miss often. 2. Store access token client side (cookie). This would require one call per client even if the access token already generated. 3. Store access token externally (S3 or secrets manager?). Latency would increase, but could be combined with #1.

Any other way to do this?

hope this is sarcastic lol
Re:Ask HN: Did your AWS bill literally double from last night? on Saturday September 21, 2019 @06:06PM (#21038179)
Lol will have to check for a coe
Re:Why Americans Just Can’t Quit Their Microwaves on Thursday July 18, 2019 @02:45AM (#20467366)
uh I think the main use for microwaves is reheating food. I've never used it cook anything.
Re:I Cancelled My Amazon Prime on Monday July 15, 2019 @11:43AM (#20441894)
Nah prime is great even if ur in NYC. I lived there and used it all the time.
Re:I Cancelled My Amazon Prime on Monday July 15, 2019 @11:41AM (#20441874)
You can cancel your auto renewal.