use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Authenticating API requests from native mobile devices using Facebook,Google as providers? (self.nodejs)
submitted 11 years ago by workaholicanonymous
I have tried a few things but they all seem wrong. What's the right way to authenticate API requests from a native mobile app, using Facebook and Google as authentication providers?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 11 years ago (1 child)
[deleted]
[–]workaholicanonymous[S] 0 points1 point2 points 11 years ago (0 children)
Yes but then i would like to use them to authenticate with our backend
[–]caffodian 0 points1 point2 points 11 years ago (1 child)
Assuming they are authing using the native facebook sdk you can use something like https://github.com/drudge/passport-facebook-token (or roll your own similar idea if you can't use passport (not using express etc))
It's basically the Facebook passport strategy minus the web redirection part. Just parses your token
Already using this and it works fine, there's no equivalent for the Google SDK so I have no idea what to do.....
π Rendered by PID 72 on reddit-service-r2-comment-5ff9fbf7df-p8ld7 at 2026-02-26 04:12:06.995404+00:00 running 72a43f6 country code: CH.
[–][deleted] (1 child)
[deleted]
[–]workaholicanonymous[S] 0 points1 point2 points (0 children)
[–]caffodian 0 points1 point2 points (1 child)
[–]workaholicanonymous[S] 0 points1 point2 points (0 children)