JS fetch auth library

Everything is implemented.