extending ensureAuthenticated
updating config
considering using a separate db for tokens
using updated config