removed duplicate var def
auth layer