Added token generation for auth