Local auth implementation