Context
I have a REST API where a user can create an account from a web client. The password is saved as a salted hash in a database. When a user is authenticated they can save and retrieve private data. All of this is done through HTTPS.
I am new to OAuth2 and I am trying to add a Facebook and Google login though OAuth2. My understanding is that once the login is complete, I will not receive a client ID and a client secret, only a access token since the login occurs in a browser.
Question
The lifetime of the access token is temporary. Is it secure to save the client ID and the access token in the database with a salted hash and is this a practice that fits well with OAuth2?
This info would be then used for the client to save & retrieve private data when authenticated like previously described.