Replaced token login callback with hasAccess callback.