Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49164

What is the Best Practice for Storing Ionic.IO User _ID in External Database

$
0
0

@IndyJones72 wrote:

Ok so I have Ionic.IO User Authentication working both custom and via Social Logins...so good to go there.

When I save a user's post, I'm saving their Ionic.IO _ID to my SQL Database. When calling that external API I'm getting back the post data and all of the various Ionic.IO _ID's for each registered user as well.

What is the fastest/best practice to lookup the ALL user _ID's so I can display their Name/Handle vs. the obviously cryptic _ID.

I was thinking during the app initialization to call the all users API from Ionic.IO and storing that in a Global Object Variable and then searching it in the ng-repeat, but not sure if that's the best/fastest way to do it.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49164

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>