···23 // Do this on global history instance so it doesn't affect this page rendering.
24 history.replaceState(null, '', '/');
2526- const session = await finalizeAuthorization(params);
27 const did = session.info.sub;
2829 const agent = new OAuthUserAgent(session);
···23 // Do this on global history instance so it doesn't affect this page rendering.
24 history.replaceState(null, '', '/');
2526+ const { session } = await finalizeAuthorization(params);
27 const did = session.info.sub;
2829 const agent = new OAuthUserAgent(session);