Creates authentication token