Saturday, 11 August 2018

serverless sign-in with Twitter?

I've been trying to make a certain twitter app (a REST API) "fully" serverless - i.e. breaking down the app into actual individual functions that can be called from API Gateway instead of running a wrapper around express (I feel dirty doing that).However, the biggest hurdle I'm facing so far is the authentication. And being a twitter app, I kinda need authToken and authTokenSecret from users if they're going to use it. Surprisingly, there is little to no documentation/examples online (not even on the AWS Cognito website).Plus, no express means no passport nor session middlewares, which makes getting authToken & authTokenSecret by having people sign-in with twitter AND persisting them through the session is a huge PITA (which I can't seem to solve atm).Is there any easy/obvious way to do this, or am I missing something?Also, if it helps, I'm using the serverless framework.

Submitted August 12, 2018 at 12:21AM by thepotatochronicles

No comments:

Post a Comment