diff --git a/Documentation/alternate-fetches.md b/Documentation/alternate-fetches.md index e6cc71034..4cb98ad0d 100644 --- a/Documentation/alternate-fetches.md +++ b/Documentation/alternate-fetches.md @@ -44,10 +44,12 @@ r@1.11.2/dist/solid-client-authn.bundle.js"> catch(e) { alert(e) } } document.getElementById('login').onclick = ()=> { - auth.login({ + solidClientAuthentication.login({ oidcIssuer: idp, redirectUrl: window.location.href, clientName: "rdflib test" }); } async function handleRedirectAfterLogin() { - await auth.handleIncomingRedirect(); - session = auth.getDefaultSession(); - if (session.info.isLoggedIn) main(session); + const session = await solidClientAuthentication.handleIncomingRedirect(); + if (session.info.isLoggedIn) main(); } handleRedirectAfterLogin();