Added ability to auth by token