I am new to mobile development.
As i understand the best way to authenticate/give authorization to a user is using OAuth2.0 with the social providers as Facebook, Google ect ... When we enter the credentials the server returns an access token which is stored in the device so we do not need to re enter every time the credentials and it grants him the rights.
But I want to use my own user login within my own DB, I don't know where to look because everything that I read tells me to NOT store the username/password. What do I store (the token ?) and how ?