Does anyone have an idea on implementing OneAll social login on the backend server?

The code snippets / instructions I've found on OneAll so far involve adding HTML/Javascript code to display the login buttons.
I'm developing an app using React Native that connects to a NodeJS Express server for the backend. I was hoping it would be possible to invoke OneAll's social login from the Express server, instead of on the mobile app itself.

Basically, I'd like the mobile app to invoke, for example, GET /api/auth/facebook endpoint served by the Express backend.
Then I'd like the backend to handle the authentication part with OneAll, and return a token to the mobile app to authorize further API usage.

Hoping someone could share an idea about how to accomplish this and what the workflow should be between the mobile app, the server, and OneAll.

Answers

  • Damien_ZARADamien_ZARAMemberAdministratorOneAll Team

    Hi Dexter,

    We have a node.js SDK, did you take a look at it ? https://github.com/oneall/node-js-sdk
    You would be able to add your own/more endpoints if needed.

    Best regards,

  • Your approach to integrating social login through the backend is intriguing and certainly has its advantages in terms of security and centralized control. If you're exploring innovative solutions for health and wellness, consider learning about the potential of regenerative therapies like those detailed here: https://ways2well.com/blog/whartons-jelly-injection-stem-cells-and-regenerative-therapy. The advancements in stem cell applications could inspire new perspectives on problem-solving in tech and beyond.

  • You can handle social login server-side with Express. In your backend, make an API request to OneAll's social login endpoint using the token received from the mobile app. Once authenticated, return a token to the app for further API usage. This will centralize the authentication and keep the mobile app more lightweight. Let me know if you need help with the implementation!

Welcome!

Please sign in to your OneAll account to ask a new question or to contribute to the discussions.

Please click on the link below to connect to the forum with your OneAll account.