Safest way to keep users logged in?

Fearless, read up on MySQL databases.
You can store the user’s oauth in a database with encryption such as md5.

Then when they return to the page, you can consult the database for their oauth token and then re-authenticate automatically.