Update oauth.php

debug + save bearer token to database
Merge pull request #2 from ploupas/patch-2

Update oauth.php