Made it possible to use a callable for OAUTH_CALLBACK_URL