JS fetch auth library

JS fetch auth library. Everything is implemented.