implementing the new auth system in Thimble