Made the OAuth 2 redirect_uri param in the options hash mandatory and created a method to get it.