Solid auth in Nativescript, it seems hard to implement. Could use some help :)

So I tried all the latest NPM packages, but Nativescript doesn’t to seem with the packages due to react libs that require a window. Can anybody point me into the right direction?