The ui app uses the archived https://github.com/guardian/panda-session library to re-authorise users client-side if their api request fail authentication. Should look into a suitable replacement. Other projects using the same library: https://github.com/search?q=panda-session+user%3Aguardian+path%3A**%2Fpackage.json+language%3AJSON&type=Code&ref=advsearch&l=JSON&l= ideally, should build a reusable solution. https://github.com/guardian/csnx might be the appropriate home for it.