I want the credentials to be used during the use of the app by the user.
But the users have to be stored in a database on my server, and not locally.
How is it usually handled?
What would be the best practice?
Then you’ll want localstorage, which is less persistent. As for what the credentials actually look like, there are several options. If you want to let people sign in using Facebook or Google or Twitter or whatnot, look into OAuth. For standalone solutions, I prefer JWT.
JWT? What is it ?
What if I’d like tto offer several connexion options ?
For example, standard connexion with email/ password, or the ability to login with facebook credentials.
You should use tokens…
tokens, ok, but how?
I followed a course on ionic, the teacher showed how to do this and he used tokens, but he was using a node.js server. I’m using apache server witth mysql database. So I don’t know how to do…
Maybe this article will be interesteing to you?
Thank you all for your answers, things are clearer for me now.
Hi @Bonsaiko I would like to see also your codes, can you send me also. Here is my email aljun.bellen12@gmail.com. I manage to create RESTful API using Slim Framework too, but my problem now is how to connect my app to the rest i made… like a login. Thanks in advance
Hello Anicacute09. I’m going to send you my code by mail.
yah thanks for that… I am really glad for your help…
hey…l have been following yur discussions…hav similar problems conecting my app to mysql…can you send me yur code tooo...tenisonoseiowusu@gmail.com
thanks
hey…l have been following yur discussions…hav similar problems
conecting my app to mysql…can you send me yur code
tooo...tenisonoseiowusu@gmail.com
thanks
Hi @Bonsaiko I am new to Ionic also and I would like to know how to connect my ionic app to my own database and server. I would like to see your codes on that specific matter, can you please send me your codes on my email: edgareisma@yahoo.com.ph or edgar.eisma@gmail.com. Hoping for your response
Thank you 
hi @Bonsaiko l have been following yur discussions…have similar problems conecting my app to mysql…can you send me yur code too…
flaskhooks@gmail.com
thanks
@Bonsaiko http://forum.ionicframework.com/users/bonsaiko please can you
send me copy of that code… working on similar project…thank you(
tenisonoseiowusu@gmail.com)
Hello, I am also new at Ionic, and I need to connect ionic app to mysql database as you did.
Is it possible that you send me your code by mail: zdrava_mo@hotmail.com ?
Thanks in advance.
Hi @Bonsaiko and @anicacute09
Could you send me the code to my email?
smessiecraft[at]outlook.com
It would Really help me because I have the same problem.
Thank you in advance
Hi @Bonsaiko and @anicacute09
Could you send me the code to my email?
my mail id:jeevamtechit@gmail.com
You can search about Rest API using any frameworks like Laravel, CodeIgniter and the one I use is Slim for creating RESTful api… And just use HTTP Request by angular to communicate from server to you app or vice versa…
Useful Links:
thank u so much @anicacute09.