auth: initKeys before first error exit path