expose auth to plugins