added authToken function