Add JIDOTEKI_ENDPOINT variable and fix small auth crash bug