auth: Closure for authenticate static